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

Method render

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

pushFunction · 0.50
popFunction · 0.50

Tested by

no test coverage detected