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