我尝试更新到RNN2并在App.js中实现如下:
Navigation.registerComponent("Screen.AlertScreen", () => AlertScreen);
Navigation.registerComponent("Screen.OverlayScreen", () => OverlayScreen);
Navigation.registerComponent("Screen.SigninScreen", () => SigninScreen, store, Provider);
export default () => Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
component: {
name: 'Screen.SigninScreen'
}
}
});
});
但是我得到这个错误: 对象作为React子对象无效(找到:带有键{remove}的对象)。如果要渲染子级集合,请改用数组。