Frameworks
React Native & Expo
Distribute Android APK/AAB and iOS IPA builds from your React Native and Expo projects using BuildShare CLI.
React Native applications compile to native Android and iOS folders. If you're using Expo, you can build locally using Expo Application Services (EAS) or prebuild to native directories.
Typical Build Paths
Depending on how your compilation is configured, your compiled binaries will typically reside in:
- Android APK:
./android/app/build/outputs/apk/release/app-release.apk - Android AAB:
./android/app/build/outputs/bundle/release/app-release.aab - iOS IPA:
./ios/build/Build/Products/Release-iphoneos/MyApp.ipa(or customized Xcode export path)
Automation Scripts
Add these scripts to your package.json to compile and distribute in a single command:
{
"scripts": {
"build:android": "cd android && ./gradlew assembleRelease",
"distribute:android": "npm run build:android && buildshare upload ./android/app/build/outputs/apk/release/app-release.apk --notes 'React Native Android release'",
"distribute:ios": "buildshare upload ./ios/build/MyApp.ipa --notes 'React Native iOS release'"
}
}Now you can distribute updates with simple npm scripts:
npm run distribute:android