mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-20 04:21:11 +08:00
Default to hide hidden header backgrounds
This commit is contained in:
@@ -16,6 +16,11 @@ import LifecycleInteraction from './src/LifecycleInteraction';
|
||||
import GestureInteraction from './src/GestureInteraction';
|
||||
import SwitchWithStacks from './src/SwitchWithStacks';
|
||||
import StackWithDrawer from './src/StackWithDrawer';
|
||||
import {
|
||||
HeaderBackgroundDefault,
|
||||
HeaderBackgroundTranslate,
|
||||
HeaderBackgroundFade,
|
||||
} from './src/HeaderBackgrounds';
|
||||
|
||||
// Comment the following two lines to stop using react-native-screens
|
||||
import { useScreens } from 'react-native-screens';
|
||||
@@ -54,6 +59,21 @@ const data = [
|
||||
title: 'Stack with drawer inside',
|
||||
routeName: 'StackWithDrawer',
|
||||
},
|
||||
{
|
||||
component: HeaderBackgroundDefault,
|
||||
title: 'Header background (default transition)',
|
||||
routeName: 'HeaderBackgroundDefault',
|
||||
},
|
||||
{
|
||||
component: HeaderBackgroundFade,
|
||||
title: 'Header background (fade transition)',
|
||||
routeName: 'HeaderBackgroundFade',
|
||||
},
|
||||
{
|
||||
component: HeaderBackgroundTranslate,
|
||||
title: 'Header background (translate transition)',
|
||||
routeName: 'HeaderBackgroundTranslate',
|
||||
},
|
||||
];
|
||||
|
||||
// Cache images
|
||||
@@ -103,9 +123,6 @@ const Root = createStackNavigator(
|
||||
{
|
||||
mode: 'modal',
|
||||
headerMode: 'none',
|
||||
defaultNavigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user