diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d52154..5869be3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,17 @@ jobs: - name: Install dependencies run: npm ci --legacy-peer-deps - + + - name: Fix react-native-bottom-tabs plugin + run: | + # Patch app.plugin.js to require the CommonJS module instead of the ESM one + if [ -f node_modules/react-native-bottom-tabs/app.plugin.js ]; then + sed -i "s|require('./lib/module/expo')|require('./lib/commonjs/expo')|g" node_modules/react-native-bottom-tabs/app.plugin.js + echo "Patched react-native-bottom-tabs/app.plugin.js" + else + echo "File node_modules/react-native-bottom-tabs/app.plugin.js not found, skipping patch." + fi + - name: Build Android App env: SENTRY_DISABLE_AUTO_UPLOAD: true