()
| 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 | |
| 80 | class ScreenWithNoHeader extends React.Component<NavigationStackScreenProps> { |