1. Cài đặt Nodejs
2. Cài đặt Yarn
3. Cài đặt Package
4. Cấu hình Webpack
- Hot reload
- Css, less, scss, file …
- Build, deploy, product…
5. React
-
React-router
-
React-redux
-
View package
-
Setup dicrectory : React & ReactNative
-
Css style
ReactNative
- React Native CLI :
npm install -g react-native-cli
- Create app :
react-native init projectname --version react-native@0.48.0
- Run Android :
react-native run-android
- Run iOS :
react-native run-ios
- Updrage :
react-native upgrade
Build File
Android
1.Unsign build
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
Mở cửa sổ mới, chạy lần lượt 2 lệnh sau
cd android
gradlew assembleDebug
File build ra ở thư mục :
app/build/outputs/apk/