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

Method render

example/src/StackWithHeaderPreset.tsx:17–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

pushFunction · 0.50

Tested by

no test coverage detected