react-native-actions-sheet
react-native-actions-sheet copied to clipboard
Not working in release mode with new arch enabled (72.6)
Works in debug but with a release build (w/ new arch) the sheet is not visible.
I was able to solve this issue for me. I noticed, that directly using the ActionsSheets work, only usage via the SheetManager was broken.
With a bit more debugging, I noticed, that the file with all my registerSheet functions was not imported anywhere and thus the sheets never actiolly got registered. For some reason this file was stil run in dev mode and also in expo sdk 47 release mode.
So I suspect it was most likely not event a react native issue, but a change in the metro bundler and the way it handles non imported files, that caused this issue for me.
TLDR: I forgot to register the actions sheets.
Does that fix it for you as well @JohnathanWhite ?
I have the same problem, the react-native-modal package does not work in the same release mode (apk) as the react-native-actions-sheets package. I think it's a general problem that I can see.
How can we solve this problem, I opened a new topic about it (issue381)
- react-native-actions-sheets
- react-native-modal
those packages have problem in android release mode (apk) render problem. They are not working as in issue you can check.
android > gradle.properties
newArchEnabled=true