MCPcopy Create free account
hub / github.com/react-navigation/react-navigation / render

Method render

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

Source from the content-addressed store, hash-verified

64 };
65
66 render() {
67 const { navigation } = this.props;
68 const { pop } = navigation;
69
70 return (
71 <SafeAreaView style={{ paddingTop: 30 }}>
72 <Button onPress={() => pop()} title="Pop" />
73 <Button onPress={() => navigation.goBack(null)} title="Go back" />
74 <StatusBar barStyle="default" />
75 </SafeAreaView>
76 );
77 }
78}
79
80class ScreenWithNoHeader extends React.Component<NavigationStackScreenProps> {

Callers

nothing calls this directly

Calls 1

popFunction · 0.50

Tested by

no test coverage detected