0
我在我的應用程序路由器的這種配置 - 當我進來註銷我在componentWillMount()
調用Actions.auth()
導航的反應本地路由器流量
<Router navigationBarStyle={styles.navBar}
titleStyle={styles.navBarTitle}
>
<Scene key="modal" component={Modal}>
<Scene key="drawer" component={Drawer} open={false} type="replace" initial={this.state.flag ? false : true}>
<Scene key="mywishlist" component={MyWishlist} title="WISHLIST" type="replace" />
<Scene key="faq" component={FAQ} title="FAQ" type="replace" />
<Scene key="profilepic" component={ProfilePic} />
<Scene key="changepassword" component={ChangePassword} panHandlers={null} />
<Scene key="addressmanage" component={AddressManage} />
<Scene key="dishsearch" component={DishSearch} />
<Scene key="feedback" component={Feedback} hideNavBar type="replace" />
<Scene key="logout" component={Logout} hideNavBar type="replace" />
</Scene>
<Scene key="auth" initial={this.state.flag ? true : false} >
<Scene key="login" panHandlers={null} component={Login} title="Login" hideNavBar={true} type="replace" />
<Scene key="otp" panHandlers={null} component={OTP} title="OTP" hideNavBar={true} />
<Scene key="signup" panHandlers={null} component={SignUp} title="SignUp" hideNavBar={true} type="replace" />
<Scene key="coachmark" component={Coachmark} hideNavBar />
</Scene>
<Scene key="popUpImagePicker" panHandlers={null} component={PopUpImagePicker} title="PopUpImagePicker" hideNavBar={true} />
<Scene key="appModal" component={AppModal} />
</Scene>
</Router >
來登錄屏幕,但它不是加工。任何建議,爲什麼不工作,以及如何路由從「抽屜」內的任何屏幕登錄?
嗨...你能在組件'logout'中顯示更多代碼嗎? – muhammadaa