mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-12 09:02:51 +08:00
Prevent pop and popToTop from bubbling up to parent stack (#3453)
This commit is contained in:
committed by
Eric Vicenti
parent
c69a22f10e
commit
b0dccd7e88
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user