Invariant Violation: The navigation prop is missing for this navigator

后端 未结 10 2598
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 23:20

I am receiving this message when I tried starting my react native app. Usually this kind of format works on other multi screen navigation yet somehow does not work in this c

10条回答
  •  清歌不尽
    2020-12-01 00:02

    const AppNavigator = createStackNavigator({
      Home: { screen: Home },
      Friends: { screen: Friends },
    });
    

    Simple i did

    const App = createAppContainer(AppNavigator);
    export default App;
    

    Instead of

    export default AppNavigator;
    

提交回复
热议问题