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

Method render

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

Source from the content-addressed store, hash-verified

37 };
38
39 render() {
40 const { navigation } = this.props;
41 const { push, pop } = navigation;
42
43 return (
44 <SafeAreaView style={{ paddingTop: 30 }}>
45 <Button
46 onPress={() => push('ScreenWithLongTitle')}
47 title="Push another screen"
48 />
49 <Button
50 onPress={() => push('ScreenWithNoHeader')}
51 title="Push screen with no header"
52 />
53 <Button onPress={() => pop()} title="Pop" />
54 <Button onPress={() => navigation.goBack(null)} title="Go back" />
55 <StatusBar barStyle="default" />
56 </SafeAreaView>
57 );
58 }
59}
60
61class ScreenWithLongTitle extends React.Component<NavigationStackScreenProps> {

Callers

nothing calls this directly

Calls 2

pushFunction · 0.50
popFunction · 0.50

Tested by

no test coverage detected