用'react-native-router-flux' 路由库时
用Actions 跳转时 启动页面两次,或者启动2个页面 这个现象 注意了:
路由代码:
const RouterPager = () => {
return <Router
backAndroidHandler={onBackPress}
>
<Overlay key = 'overlay'>
<Modal key ='modal'>
<Stack hideNavBar key = 'welcome' inital={true}>
<Scene component={Welcome} key = 'Welcome' title='Welcome' inital = {true}/>
</Stack>
<Stack hideNavBar key = 'auth'>
<Scene component={Login} key = 'Login' title='Login' />
</Stack>
</Modal>
</Overlay>
</Router>
}