mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-12 09:02:51 +08:00
StackNavigator Replace Action (#3440)
* Navigation replace action The long awaited action to replace the a route in StackNavigator * Fix flow maybe
This commit is contained in:
committed by
Brent Vatne
parent
7f50173cf1
commit
333b2e4b68
@@ -32,13 +32,8 @@ class MyNavScreen extends React.Component<MyNavScreenProps> {
|
||||
title="Go to a photos screen"
|
||||
/>
|
||||
<Button
|
||||
onPress={() =>
|
||||
navigation.navigate('Profile', {
|
||||
name: 'Dog',
|
||||
headerBackImage: require('./assets/dog-back.png'),
|
||||
})
|
||||
}
|
||||
title="Custom back button"
|
||||
onPress={() => navigation.replace('Profile', { name: 'Lucy' })}
|
||||
title="Replace with profile"
|
||||
/>
|
||||
<Button onPress={() => navigation.goBack(null)} title="Go back" />
|
||||
<StatusBar barStyle="default" />
|
||||
|
||||
Reference in New Issue
Block a user