First, make sure you Installed React Native cli and its requirements according to Facebook Docs.
Clone the project:
git clone https://github.com/iran-react-community/elegant-react-native.git
cd elegant-react-native
Add your desired name:
Open app.json
file where you can edit your project name and displayName.
Eject:
Now run react-native eject
To generate ios and android folders
Linking the vector icons:
react-native link
this will add app/assets/fonts and react-native-vector-icons
Install the iOS dependencies:
cd ios && pod install && cd ..
Run the project:
yarn ios
to Run Ios development
yarn android
to Run Android development
vector icons
it doesn't work, if you link it then you cannot have an iOS build, so link it and then open the Xcode with double-click the {projectName}.xcworkspace
, then in the Build phase > [CP] Copy Pods Resources
delete all outputs. after it the yarn ios
will work properly. Edit your android/app/build.gradle
file and make the change illustrated below:
project.ext.react = [
entryFile: "index.js",
- enableHermes: false // clean and rebuild if changing
+ enableHermes: true // clean and rebuild if changing
]
cd android && ./gradlew clean && cd ../ && yarn android
MIT
Free Software, Hell Yeah!