Skip to main content

React Native

Installation

Follow the react-native official documentation
  1. Install node js.
  2. Install python
  3. create a folder for your project
    1. install npm locally only for your react-native project
      1. run cmd within the folder
      2. type "npm init" and hit enter (this will install npm locally)
  4. Install React native
    1. npm install react-native-cli
    2. npx react-native init <project name>

Error Handling - React native

After creating react native environment we need to add local.properties file

Path : Main Folder > android > gradle
  1. Create a file as local.properties
  2. Add these codes into the above-created file

sdk.dir C:\\Users\\username\\AppData\\Local\\Android\\sdk
username - your computer username




Comments