ReactJS – Why does NPM Install React-Native does not work?

I am trying to install react-native through npm install –save react-native for my library so I can export a react component that uses View as a wrapper, and its children are platform-independent .When I try to import react-native, it spews hundreds of lines, saying that it cannot parse the module in react-native

for example

./~/ react-native/Libraries/react-native/react-native.js error
Cannot find module: Error: Unable to resolve module’ActivityIndi​​cator’

The best way to solve this problem is What?

>You need to install react-native-cli first
npm install -g react- native-cli.
>Then start the project by clicking on the following – react-native init YourProjectName

For details, please follow their guid!

I am trying to install react-native through npm install –save react-native for my library so I can export a react component that uses View as a wrapper, its sub The item has nothing to do with the platform. When I try to import react-native, it spews hundreds of lines, saying that it cannot parse the module in react-native

for example

./~/react-native/Libraries/react-native/react-native.js error
Cannot find module: Error: Unable to resolve module’ActivityIndi​​cator’

Solve this problem What is the best way?

>You need to install react-native-cli first using
npm install -g react-native-cli.
>Then click the following – React-native init YourProjectName to start the project

For more information, please follow their guid!

Leave a Comment

Your email address will not be published.