MCPcopy Index your code
hub / github.com/react-navigation/react-navigation / render

Method render

example/src/HeaderPreset.tsx:16–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 };
15
16 render() {
17 const { navigation } = this.props;
18 const { push } = navigation;
19
20 return (
21 <SafeAreaView style={{ paddingTop: 30 }}>
22 <Button onPress={() => push('Other')} title="Push another screen" />
23 <Button
24 onPress={() => push('ScreenWithNoHeader')}
25 title="Push screen with no header"
26 />
27 <Button onPress={() => navigation.goBack(null)} title="Go Home" />
28 <StatusBar barStyle="default" />
29 </SafeAreaView>
30 );
31 }
32}
33
34class OtherScreen extends React.Component<NavigationStackScreenProps> {

Callers

nothing calls this directly

Calls 1

pushFunction · 0.50

Tested by

no test coverage detected