Android react本机导航:在StartBabbaseDapp上安装两次组件
导航API的初始调用中提到的屏幕被调用了两次 下面是我的src-in-App-root组件Android react本机导航:在StartBabbaseDapp上安装两次组件,android,ios,react-native,react-native-navigation,Android,Ios,React Native,React Native Navigation,导航API的初始调用中提到的屏幕被调用了两次 下面是我的src-in-App-root组件 constructor() { //**mobx** reaction(() => app.currentRoot,(res) => this.startApp(res)) this.startApp('user.login') } startApp(root){ Navigation.startSingleScreenApp({ scre
constructor() {
//**mobx** reaction(() => app.currentRoot,(res) => this.startApp(res))
this.startApp('user.login')
}
startApp(root){
Navigation.startSingleScreenApp({
screen: {
screen: root, //componentDidMount is called twice.
navigatorStyle: {
screenBackgroundColor: colors.BACKGROUND,
statusBarColor: colors.BACKGROUND
},
navigatorButtons: {}
}
})
}
我必须为用户加载一些初始数据,我将通过对服务器的API调用获得这些数据。调用两次,数据被追加(真正的问题)
有什么解决办法吗?或者我做错了什么 你找到解决办法了吗?