React Native Navigation Component Route Issue

前端 未结 4 2055
孤独总比滥情好
孤独总比滥情好 2021-02-12 13:44

New react native user here. I\'m running into an issue and I am not sure how to proceed. I was able to get react-navigation running properly and then began receiving an error: \

4条回答
  •  误落风尘
    2021-02-12 14:09

    const MyNavigator = createStackNavigator({
      RouteNameOne: {
        screen: () => 
      },
      RouteNameTwo: {
        screen: () => 
      }
    }, {
      initialRouteName: 'RouteNameOne'
    });
    

    It will work.

提交回复
热议问题