Build a cross-platform (Android IOS) EPOS application through the React native CLI
Support for Windows is planned for the future
Please follow the React native CLI Quickstart set up your environment.
- NOTE
- You can set up your environment with react native CLI doctor.
yarn react-native doctor # use the cmdLine in your terminal
# After running this command, with the shortcut F, the doctor will automatically fix the environment settings
- Mack sure your project path is english character.
Some languages character path may cause not found cannot find module 'react-native/cli'.Such as your path include chinese characters
- Recommend install gradle as your build tool for android.
yarn
# or
npm i
// If you are debugging width ios
cd ios
pod install
- Android
yarn android
# or
npm run android
# It may take a while. Gradle requires installing some dependencies from the Internet, at the first time.
- IOS
yarn ios
- Android
yarn react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle
# If assets floder does not exist, your need create this folder.
cd android
gradle assembleRelease
# Or
.\gradlew assembleRelease # If you don't have Gradle
- IOS