| 14 | }; |
| 15 | |
| 16 | render() { |
| 17 | const { navigation } = this.props; |
| 18 | const { push } = navigation; |
| 19 | |
| 20 | return ( |
| 21 | <SafeAreaView style={{ paddingTop: 30 }}> |
| 22 | <Button onPress={() => push('Other')} title="Push another screen" /> |
| 23 | <Button |
| 24 | onPress={() => push('ScreenWithNoHeader')} |
| 25 | title="Push screen with no header" |
| 26 | /> |
| 27 | <Button onPress={() => navigation.goBack(null)} title="Go Home" /> |
| 28 | <StatusBar barStyle="default" /> |
| 29 | </SafeAreaView> |
| 30 | ); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | class OtherScreen extends React.Component<NavigationStackScreenProps> { |