Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Errors while running npx react-native run-ios. Afte resolving errors, Andross rendering correctly on Android, but not on iOS #315

Open
e-mcbride opened this issue Dec 3, 2020 · 0 comments

Comments

@e-mcbride
Copy link

I'm using react-native version 0.63. I ran into errors while attempting to initiate a new project using the Andross boilerplate. I will explain how I resolved them below.

First error:

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: 
  - react-native-device-info (to unlink run: "react-native unlink react-native-device-info")
  - react-native-gesture-handler (to unlink run: "react-native unlink react-native-gesture-handler")
  - react-native-i18n (to unlink run: "react-native unlink react-native-i18n")
  - react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.

I fixed these by running the recommended unlink actions in parentheses, adding npx before each like so: npx react-native unlink react-native-device-info

Second error:

error Could not find the following native modules: RNCAsyncStorage, RNCMaskedView, react-native-config, RNDeviceInfo, RNGestureHandler, RNI18n, react-native-safe-area-context, RNScreens, RNVectorIcons. Did you forget to run "pod install" ?

Fixed using this solution found on stack overflow. To repeat it here:

  1. navigate to ios folder in root directory of react-native project
  2. run pod init
  3. run pod install

After resolving these successfully, I encountered a final error described in another open issue. It was resolved using the solution found there. For thoroughness, I will include the error here:

Error: `createStackNavigator()` has been moved to `react-navigation-stack`. See https://reactnavigation.org/docs/4.x/stack-navigator.html for more details.
@e-mcbride e-mcbride changed the title Errors while running npx react-native run-ios with react-native version 0.63 Errors while running npx react-native run-ios. Afte resolving errors, Andross rendering correctly on Android, but not on iOS Dec 4, 2020
@e-mcbride e-mcbride reopened this Dec 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant