Created
December 14, 2023 20:33
-
-
Save alperbayram/86e5621785488717a9e4f2de4727a0bb to your computer and use it in GitHub Desktop.
_layout.tsx
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={{ | |
presentation: "modal", | |
headerLeft: () => ( | |
<Button title="Close" onPress={() => router.back()} /> | |
), | |
}} | |
/> | |
</Stack> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment