Question Detail

This is new for me so not able to recognised how to install react native setup in windows. I saw lot of tutorials on google but not find the easiest one so if anyone have it . Please give the suggestions for this.

Thread Reply

Please run these commands in the project folder and fill in their results:

npm ls react-native-scripts: react-native-scripts@0.0.50

npm ls react-native: react-native@0.45.1

npm ls expo: expo@18.0.9

node -v: v6.9.2

npm -v: 4.6.1

yarn --version: Not installed

watchman version: "version": "4.7.0"

npm install -g create-react-native-app
create-react-native-app my-app

Updating to New Releases

You should only need to update the global installation of create-react-native-app very rarely, ideally never.

Updating the react-native-scripts dependency of your app should be as simple as bumping the version number in package.json and reinstalling your project's dependencies.

Upgrading to a new version of React Native requires updating the react-native, react, and expo package versions, and setting the correct sdkVersion in app.json. See the versioning guide for up-to-date information about package version compatibility.

Available Scripts

If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.

npm start

Runs your app in development mode.

Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.

Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the --reset-cache flag to the start script:

Like npm start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.

npm run android

Like npm start, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment, there are two options for making the right copy of adb available to Create React Native App:

Please Login!

Question and Answer site helps your online community to share knowledge. People with questions get the answers they need. The community is enriched by commenting, voting, notifications, points and rankings. QnA seizes the opportunity to help the large number of people without a moment's delay as we can. The concentrations are an impression of the sum We've helped some person.