fix(ci): patch react-native-bottom-tabs plugin import

This commit is contained in:
paregi12 2025-12-24 14:41:33 +05:30
parent b0b5951055
commit 25da48690f

View file

@ -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