Prevent pop and popToTop from bubbling up to parent stack (#3453)

This commit is contained in:
Brent Vatne
2018-02-06 17:35:32 -08:00
committed by Eric Vicenti
parent c69a22f10e
commit b0dccd7e88
3 changed files with 84 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ class MyNavScreen extends React.Component<MyNavScreenProps> {
title="Go to a profile screen"
/>
<Button onPress={() => navigation.popToTop()} title="Pop to top" />
<Button onPress={() => navigation.pop()} title="Pop" />
<Button
onPress={() => navigation.navigate('Photos', { name: 'Jane' })}
title="Go to a photos screen"