mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-08 12:10:13 +08:00
refactor: switch to fade animation for header by default
This commit is contained in:
@@ -4,6 +4,7 @@ import { SafeAreaView } from '@react-navigation/native';
|
||||
import {
|
||||
createStackNavigator,
|
||||
TransitionPresets,
|
||||
HeaderStyleInterpolators,
|
||||
} from 'react-navigation-stack';
|
||||
|
||||
class HomeScreen extends React.Component {
|
||||
@@ -103,7 +104,10 @@ const StackWithHeaderPreset = createStackNavigator(
|
||||
ScreenWithNoHeader: ScreenWithNoHeader,
|
||||
ScreenWithLongTitle: ScreenWithLongTitle,
|
||||
},
|
||||
TransitionPresets.SlideFromRightIOS
|
||||
{
|
||||
...TransitionPresets.SlideFromRightIOS,
|
||||
headerStyleInterpolator: HeaderStyleInterpolators.forUIKit,
|
||||
}
|
||||
);
|
||||
|
||||
export default StackWithHeaderPreset;
|
||||
|
||||
Reference in New Issue
Block a user