()
| 84 | }; |
| 85 | |
| 86 | render() { |
| 87 | const { navigation } = this.props; |
| 88 | const { push, pop } = navigation; |
| 89 | |
| 90 | return ( |
| 91 | <SafeAreaView style={{ paddingTop: 30 }}> |
| 92 | <Button onPress={() => push('Other')} title="Push another screen" /> |
| 93 | <Button onPress={() => pop()} title="Pop" /> |
| 94 | <Button onPress={() => navigation.goBack(null)} title="Go back" /> |
| 95 | <StatusBar barStyle="default" /> |
| 96 | </SafeAreaView> |
| 97 | ); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | const StackWithHeaderPreset = createStackNavigator( |