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/(tabs)/user/users.tsx | |
import { Text, View, Image } from "react-native"; | |
import { Link, Stack } 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/(tabs)/user/[id].tsx | |
import { View, Text, Image } from "react-native"; | |
import { useLocalSearchParams, Stack, usePathname } from "expo-router"; | |
import { styles } from "../../../styles/styles"; | |
export default function Page() { | |
const pathname = usePathname(); | |
const local = useLocalSearchParams(); | |
return ( |
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/(tabs)/user/_layout.tsx | |
import { Stack, router } from "expo-router"; | |
import { Button } from "react-native"; | |
export default function Layout() { | |
return ( | |
<Stack> | |
<Stack.Screen | |
name="users" | |
options={{ |
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/(tabs)/settings.tsx | |
import { View, Text } from "react-native"; | |
import { styles } from "../../styles/styles"; | |
export default function Page() { | |
return ( | |
<View style={styles.container}> | |
<View> | |
<Text style={styles.subtitle}>app/(tabs)/settings.tsx</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
//app/(tabs)/profile.tsx | |
import { View, Text } from "react-native"; | |
import { styles } from "../../styles/styles"; | |
import { Link } from "expo-router"; | |
export default function Page() { | |
return ( | |
<View style={styles.container}> | |
<View> | |
<Text style={styles.subtitle}>app/(tabs)/profile.tsx</Text> |
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 { Tabs } from "expo-router"; | |
export default function Layout() { | |
return ( | |
<Tabs> | |
<Tabs.Screen | |
name="settings" | |
options={{ | |
title: "settings", | |
headerTitle: "Settings", |
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/(tabs)/_layout.tsx | |
import { Tabs } from "expo-router"; | |
export default function Layout() { | |
return ( | |
<Tabs> | |
<Tabs.Screen | |
name="user" | |
options={{ | |
headerShown: false, |
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}> | |
<View> | |
<Text style={styles.subtitle}>app/index.tsx</Text> |
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 { View, Text } from "react-native"; | |
import { styles } from "../styles/styles"; | |
export default function Page() { | |
return ( | |
<View style={styles.container}> | |
<View> | |
<Text style={styles.subtitle}>app/modal.tsx</Text> | |
</View> | |
</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 { Stack, router } from "expo-router"; | |
import { Button } from "react-native"; | |
export default function Layout() { | |
return ( | |
<Stack> | |
<Stack.Screen name="index" options={{ headerShown: false }} /> | |
<Stack.Screen | |
name="modal" | |
options={{ |