This is the app client of Price scraper server
yarn startyarn androidOnly first time
cd ios && pod install && cd ..yarn iosIf everything is set up correctly, you should see your new app running in your Android Emulator or iOS Simulator shortly provided you have set up your emulator/simulator correctly.
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
yarn run storybook:web$ mkdir android/app/src/main/assetsnpx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ --reset-cache$ npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/execute command to run android to create debug apk (if you already install in local react-native, omit npx)
$ npx react-native run-android$ cd android$ ./gradlew assembleDebug$ ./gradlew :app:installDebug/android/app/build/outputs/apk/debug
You can also use the simplified build script that combines all the above steps:
yarn build:androidThe APK will be generated at:
android/app/build/outputs/apk/debug/app-debug.apk
The project is already configured to use Material Icons from react-native-vector-icons. The configuration is done in android/app/build.gradle.
To ensure icons work properly on iOS:
- Make sure the following fonts are listed in
ios/PriceScrapperApp/Info.plistunderUIAppFonts:
<key>UIAppFonts</key>
<array>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
</array>- Run the following commands to link the fonts:
cd ios
pod install
cd ..When building the APK for Android, the icons will be automatically included in the build. No additional steps are required.
To generate a release APK:
cd android
./gradlew assembleReleaseThe APK will be generated at android/app/build/outputs/apk/release/app-release.apk
To create a new release:
- Make sure all your changes are committed
- Run the release command:
yarn releaseThis will:
- Update the version in package.json
- Generate/update the CHANGELOG.md
- Create a git tag
- Push the changes and tag to GitHub
The GitHub Actions workflow will automatically:
- Build the Android APK
- Create a new GitHub Release
- Attach the APK and CHANGELOG.md to the release
Note: Make sure your commit messages follow the Conventional Commits specification for proper changelog generation.
git push --follow-tags origin main