Why is npm install responsive-native not working?

I am trying to install recact-native through npm install --save react-nativefor my library so that I can export a reaction component that uses Viewas a wrapper around it to be a platform agnostic. When I try to import react-native, it outputs hundreds of lines saying that it cannot resolve modules inreact-native

eg,

Error in ./~/react-native/Libraries/react-native/react-native.js Module not found: Error: Cannot resolve module 'ActivityIndicator'

What is the best way to solve this problem?

+4
source share
1 answer
  • You need to install first react-native-cli npm install -g react-native-cli.
  • Then run your project by clicking the following <react-native init YourProjectName

For more information, follow guid !

0
source

Source: https://habr.com/ru/post/1651639/


All Articles