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.jsonfile where you can edit your project name and displayName. -
Eject:
Now run
react-native ejectTo generate ios and android folders -
Linking the vector icons:
react-native linkthis will add app/assets/fonts and react-native-vector-icons -
Install the iOS dependencies:
cd ios && pod install && cd .. -
Run the project:
-
yarn iosto Run Ios development -
yarn androidto Run Android development
-
- Android: For some unknown reason the latest React-Native version has an incompatible Gradle version, so for fixing the issue follow this Stack Overflow answer.
- iOS: If you do not link the
vector iconsit 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 theBuild phase > [CP] Copy Pods Resourcesdelete all outputs. after it theyarn ioswill 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- Add Customizable Theme and Dark Mode
- Auto Eject after Initialize Project
- Turn Elegant to a React Native Template
- Offline Management
- Web - SPA/SSR
- Tests
- Docs
- Todos on Trello ( Invitation Link )
- Open an issue
- Fork
- Send PR
MIT
Free Software, Hell Yeah!