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?
source
share