Frameworks
React Native & Expo
Distribute Android APK/AAB and iOS IPA builds from your React Native and Expo projects.
⚛️ React Native & Expo
React Native applications compile to native Android and iOS folder targets. If you're using Expo, you can build locally using Expo CLI 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 path)
⚙️ Setup & Link
Initialize BuildShare in your project root by pointing to your native build output folders:
buildshare init \
--project-name "My React Native App" \
--package-name "com.example.rnapp" \
--android-path "./android/app/build/outputs/apk/release/app-release.apk" \
--ios-path "./ios/build/Build/Products/Release-iphoneos/MyApp.ipa"This generates .buildshare/project.json linking your workspace.
🤖 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 --no-confirm",
"distribute:ios": "npx react-native run-ios --configuration Release && buildshare upload ios --no-confirm"
}
}Now you can distribute updates with simple commands:
npm run distribute:android