Unable to resolve module react-navigation 1

Unable to resolve module react-navigation

npm install react-navigation

Here is what the above code is Doing:
1. We are importing the createStackNavigator from the react-navigation library.
2. We are creating a new StackNavigator object and passing in a configuration object.
3. The configuration object has a property called screens.
4. The screens property is an object that has a property for each screen in our app.
5. The HomeScreen component is the value of the Home property.
6. The DetailsScreen component is the value of the Details property.
7. We are exporting the StackNavigator object.

Similar Posts