Closed OFD16 closed 1 month ago
newArchEnabled
falseI fix in react-native-modal
and react-native-actions-sheet
does not opening/work on release mode(apk) problems with gradle.properties
newArchEnabled
prop by setting it to false. I think these packages need to adapt to the new architecture of react-native as soon as possible or react native should find a solution to this because I don't know the problem 😄.
Also, I use the react-native-image-picker package to use the camera, take videos and select photos from the gallery. And since the documentation suggested Set newArchEnabled
to true inside android/gradle.properties
, that's what I did. But now I set it to false and everything works without any problems. I say pay attention to these.
Also my versions:
"react-native-image-picker": "^7.1.2",
"react-native-actions-sheet": "^0.9.6",
"react-native-modal": "^13.0.1"
https://github.com/user-attachments/assets/03c4f8ca-f84a-46b4-9980-4fac6d64d4f3
My bottomsheets are causing problems after running in Android release mode but in debug mode there is no problem when opening or using my bottomsheets. As you can see in the video, the sheet does not open but its content is visible. Real phones have the same problem.
My method to run apk in emulator:
I cleared previous builds
cd android
./gradlew clean
I created apk
./gradlew assembleRelease
I ran it on emulator
adb devices
adb install app/build/outputs/apk/release/app-release.apk
This is my package.json file. Packages that may cause problems include react-native-modal and @gorhom/bottom-sheet. I did not uninstall the packages.
Also, this is my provider.tsx file where I keep my providers.