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