反应本机导航2

时间:2018-07-08 22:39:24

标签: reactjs react-native react-native-navigation

我尝试更新到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}的对象)。如果要渲染子级集合,请改用数组。

0 个答案:

没有答案