mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
refactor: rename WipeFromBottomAndroid to RevealFromBottomAndroid
This commit is contained in:
@@ -153,7 +153,7 @@ export default createStackNavigator(
|
||||
initialRouteName: 'List',
|
||||
headerMode: 'screen',
|
||||
defaultNavigationOptions: {
|
||||
...TransitionPresets.WipeFromBottomAndroid,
|
||||
...TransitionPresets.RevealFromBottomAndroid,
|
||||
cardOverlayEnabled: true,
|
||||
},
|
||||
}
|
||||
@@ -5,6 +5,11 @@ import { createStackNavigator } from 'react-navigation-stack';
|
||||
|
||||
const Buttons = withNavigation(props => (
|
||||
<React.Fragment>
|
||||
<Button
|
||||
title="Push Details"
|
||||
onPress={() => props.navigation.push('Details')}
|
||||
/>
|
||||
<Button title="PopToTop" onPress={() => props.navigation.popToTop()} />
|
||||
<Button
|
||||
title="Go to Details"
|
||||
onPress={() => props.navigation.navigate('Details')}
|
||||
|
||||
Reference in New Issue
Block a user