Skip to content

Instantly share code, notes, and snippets.

@alperbayram
Last active December 15, 2023 09:49
Show Gist options
  • Save alperbayram/1010c32f898bea2a1089a12bc1861ac5 to your computer and use it in GitHub Desktop.
Save alperbayram/1010c32f898bea2a1089a12bc1861ac5 to your computer and use it in GitHub Desktop.
//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={{
headerTitle: "Users",
headerRight: () => (
<Button title="modal" onPress={() => router.push("/modal")} />
),
}}
/>
</Stack>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment