Readhub Native
English | 简体ä¸æ–‡
readhub.cn implementation in React Native
iOS Home | iOS Topic Detail | Android Home | Android Topic Detail |
---|---|---|---|
INTRO
- The project is written entirely in React Native
- The build product of the project does NOT collect any of your privacy, and does NOT contain any mix private goods
- The project use WhiteSource Renovate to keep dependencies up to date under the same major version
- The Android part of the project uses Github Workflow exclusively for testing and continuous integration
- The project has Hermes enabled, so it is recommended to use Flipper for debugging
- The project uses React Native Reanimated, a high-performance animation component written in C++
INSTALL
BUILD
PREREQUISITES
- Node 12 or higher, nvm is recommended for installation
- The yarn package manager
- Watchman
- Xcode 10 or higher
- CocoaPods
- JDK 8 or higher, JDK 11 recommended
- Android SDK Platform 30, recommended for installation via android studio
- Android SDK Build-Tools 30.0.2, recommended for installation via android studio
GET STARTED
yarn install
cd ios && pod install
RUNNING ON SIMULATOR
yarn react-native run-ios
yarn react-native run-android
RUNNING ON DEVICE
yarn react-native run-ios --device
yarn react-native run-android
DEBUGGING
Using Flipper for debugging
TEST
yarn test
cd android && chmod +x gradlew && ./gradlew test
ASSEMBLE THE APK
cd android && ./gradlew assembleRelease
BOOTSPLASH GENERATION
yarn react-native generate-bootsplash src/assets/Splash/bootsplash.png \
--background-color=E8F6FE \
--logo-width=256 \
--assets-path=assets \
--flavor=main