This project will show how to migrate an existing expo tool in React CLI project.
Following are the steps involved for migrate the project.
- Step 1
Run following command to create react native cli projectreact-native init <project-name>
- Step 2
Copy following files src, App.js and package.json from expo and paste it in react native project and run following commandnpm i
. - Step 3
After npm installation run following commoand to run the applicationreact-native run-android
orreact-native run-ios
.
Following are the steps involved for setting up the android projject.
- Step 1
In andriod/build.gradle file add following lineapply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
.This is to setup reurired if react-native-vector-icons is being used. - Step 2
Create local.properties file in android Folder and put following linesdk.dir = /Users/<userDir>/Library/Android/sdk
.