A boilerplate using React-Native, Mobx-State-Tree
- 中文
- English
- React-Native
- Mobx-State-Tree
- React-Navigation
- React-Native-Localize
- React-I18next
- React-Native-Vector-Icons
- React-Native-Webview
Please refer to React Native Environment Setup to configure the development environment for iOS and Android.
Make sure you have Node.js >= 14.0.0 installed on your machine.
npm install
Install cocoapods first
// If there is a ruby version greater than or equal to 2.7.5 in the environment, you can use gem to install it
sudo gem install cocoapods
// Or use brew
brew install cocoapods
After installing cocoapods, switch from the project root directory to the ios directory
cd ios
pod install
iOS Simulator
npm run ios
Android Simulator
npm run android
Launch Metro Only
npm run start
Languages can be added and modified in the ./translations
directory.
In ./utils/Constants.js
, the LANGUAGES
field corresponds to the content in the "select language" function, and the LOCALE
field corresponds to the content in ./utils/axios/AxiosConfig.js
for backend rules.
Recommended Use React-Native-Rename
Replace the image resources in the directory
./ios/ReactNativeMSTBoilerplate/Images.xcassets/AppIcon.appiconset
Replace the image resources in the mipmap-* folder
./android/app/src/main/res