This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//user/[id].tsx | |
import { View, Text, Image, TouchableOpacity } from "react-native"; | |
import { useLocalSearchParams, router, usePathname } from "expo-router"; | |
import { styles } from "../../styles/styles"; | |
export default function Page() { | |
const pathname = usePathname(); | |
const local = useLocalSearchParams(); | |
return ( | |
<View style={styles.container}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//settings/index.tsx | |
import { View, Text } from "react-native"; | |
import { Link } from "expo-router"; | |
import { styles } from "../../styles/styles"; | |
export default function Page() { | |
return ( | |
<View style={styles.container}> | |
<Text style={styles.title}>settings</Text> | |
<View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StyleSheet } from "react-native"; | |
export const styles = StyleSheet.create({ | |
container: { | |
marginVertical: 60, | |
flex: 1, | |
alignItems: "center", | |
justifyContent: "space-between", | |
}, | |
screencontainer: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app/users.tsx | |
import { Text, View, Image } from "react-native"; | |
import { Link } from "expo-router"; | |
import { styles } from "../styles/styles"; | |
export default function Page() { | |
const avatar1 = "https://avatars.githubusercontent.com/u/9664363?v=4"; | |
const avatar2 = "https://avatars.githubusercontent.com/u/43719324?v=4"; | |
return ( | |
<View style={styles.container}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//app/index.tsx | |
import { View, Text } from "react-native"; | |
import { Link } from "expo-router"; | |
import { styles } from "../styles/styles"; | |
export default function Page() { | |
return ( | |
<View style={styles.container}> | |
<Text style={styles.title}>index</Text> | |
<View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(api) { | |
api.cache(true); | |
return { | |
presets: ['babel-preset-expo'], | |
plugins: ['expo-router/babel'], | |
}; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scheme": "your-app-scheme", | |
"web": { | |
"bundler": "metro" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "expo-router/entry" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; | |
import { Text, View, Dimensions, Image } from "react-native"; | |
import Home from "../../screens/Home"; | |
import Profile from "../../screens/Profile"; | |
import ProfileSettings from "../../screens/Settings"; | |
import { getPathDown } from "./curve"; | |
import { Svg, Path } from "react-native-svg"; | |
import { scale } from "react-native-size-scaling"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as shape from "d3-shape"; | |
import { scale } from "react-native-size-scaling"; | |
//** Path Line */ | |
const line = (width, height) => { | |
const path = shape | |
.line() | |
.x((d) => d.x) | |
.y((d) => d.y)([ | |
{ x: width / 2, y: 0 }, |