diff --git a/app/_layout.tsx b/app/_layout.tsx index facac5c..e06679d 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -1,10 +1,11 @@ -import { View } from "react-native"; +import { View, Modal, Text, Button, StyleSheet } from "react-native"; import { Stack } from "expo-router"; import { SafeAreaProvider, useSafeAreaInsets, } from "react-native-safe-area-context"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; +import { useState } from "react"; import { Colors } from "@/constants/Colors"; @@ -12,6 +13,7 @@ const queryClient = new QueryClient(); export default function Layout() { const safeArea = useSafeAreaInsets(); + const [modalVisible, setModalVisible] = useState(false); return ( <> @@ -35,8 +37,55 @@ export default function Layout() { }, }} /> + { + setModalVisible(!modalVisible); + }} + > + + + Expo Snack Link +