MCPcopy Create free account
hub / github.com/AppAndFlow/react-native-safe-area-context / HomeScreen

Function HomeScreen

example/src/FormSheetExample.tsx:64–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64function HomeScreen() {
65 const navigation = useNavigation<NativeStackNavigationProp<Routes, 'Home'>>();
66 return (
67 <View style={styles.home}>
68 <Button title="Open sheet" onPress={() => navigation.navigate('Sheet')} />
69 <Button
70 title="Open sheet with a SafeAreaProvider"
71 onPress={() => navigation.navigate('SheetWithProvider')}
72 />
73 </View>
74 );
75}
76
77function SheetScreen({ title = 'SafeAreaView in a form sheet' }) {
78 const [busy, setBusy] = React.useState(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected