react-native-actions-sheet icon indicating copy to clipboard operation
react-native-actions-sheet copied to clipboard

Not working in release mode with new arch enabled (72.6)

Open JohnathanWhite opened this issue 1 year ago • 2 comments

Works in debug but with a release build (w/ new arch) the sheet is not visible.

JohnathanWhite avatar Oct 17 '23 20:10 JohnathanWhite

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 ?

mauricedoepke avatar Nov 17 '23 00:11 mauricedoepke

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

OFD16 avatar Jul 21 '24 16:07 OFD16