如何从First screen
的{{1}}到GridV1 screen
传递参数并获得参数
尽管它们具有不同的导航类型(SplashScreen
,StackNavigator
)
DrawerNavigator
在SplashScreen中
const MyApp = StackNavigator({
First: {
screen: Screens.SplashScreen
},
Home: {
screen: DrawerNavigator({
GridV1: {screen: GridV1Screen},
GridV2: {screen: GridV2Screen},
...
},
{
drawerPosition: 'right',
drawerOpenRoute: 'DrawerOpen',
drawerCloseRoute: 'DrawerClose',
drawerToggleRoute: 'DrawerToggle',
contentComponent: (props) => <SideMenu {...props}/>
})
}
}, {
headerMode: 'none',
});