mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
refactor: switch to fade animation for header by default
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import { Dimensions, Button, View, Text } from 'react-native';
|
||||
import { withNavigation } from '@react-navigation/core';
|
||||
import {
|
||||
createStackNavigator,
|
||||
TransitionPresets,
|
||||
} from 'react-navigation-stack';
|
||||
import { createStackNavigator } from 'react-navigation-stack';
|
||||
|
||||
const Buttons = withNavigation(props => (
|
||||
<React.Fragment>
|
||||
@@ -151,7 +148,5 @@ export default createStackNavigator(
|
||||
},
|
||||
{
|
||||
initialRouteName: 'List',
|
||||
headerMode: 'screen',
|
||||
...TransitionPresets.WipeFromBottomAndroid,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user