Skip to content

Instantly share code, notes, and snippets.

@alperbayram
Last active December 15, 2023 09:56
Show Gist options
  • Save alperbayram/c98524c75bffff12a17d0cf27fc2647c to your computer and use it in GitHub Desktop.
Save alperbayram/c98524c75bffff12a17d0cf27fc2647c to your computer and use it in GitHub Desktop.
//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}>
<View>
<Text style={styles.subtitle}>app/(tabs)/user/users.tsx</Text>
<View style={styles.screencontainer}>
<Link
href={{
pathname: "/user/[id]",
params: {
id: "111",
name: "bacon",
company: "expo",
image: avatar1,
},
}}
>
<View>
<Image source={{ uri: avatar1 }} style={styles.image} />
</View>
</Link>
<Link
href={{
pathname: "/user/[id]",
params: {
id: "222",
name: "alper",
company: "open to work",
image: avatar2,
},
}}
>
<View>
<Image source={{ uri: avatar2 }} style={styles.image} />
</View>
</Link>
</View>
</View>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment