我正在尝试logout
在个人资料页面上实现按钮。
我定义了以下路线。
<Router>
<Scene initial key='splashScreen' component={SplashScreen} title='Sayan' hideNavBar />
<Scene key='loginScreen' component={LoginScreen} title='President Login' hideNavBar />
<Scene key='drawer' component={NavigationDrawer} open={false}>
<Scene key='drawerChildrenWrapper' hideNavBar>
<Scene key='homeScreen' component={HomeScreen} title='Sayan' hideNavBar />
<Scene key='createUserScreen' component={CreateUserScreen} title='Create a user' hideNavBar />
<Scene key='Profile' component={ProfileScreen} title='Profile' hideNavBar />
</Scene>
</Scene>
</Router>
logout
如果我想跳回splashScreen
或loginScreen
场景,按钮处理程序是什么样的?