Open ravensroom opened 2 days ago
Hey @ravensroom, can you try removing the Image from ShareExtension? I've run into a similar issue where rendering a list of Image
components caused it to crash. I think expo-image
is quite memory intensive on mount. Obv not great, we should be able to render images in the share extension, but just want to make sure this is indeed the issue here
Hey @ravensroom, can you try removing the Image from ShareExtension? I've run into a similar issue where rendering a list of
Image
components caused it to crash. I thinkexpo-image
is quite memory intensive on mount. Obv not great, we should be able to render images in the share extension, but just want to make sure this is indeed the issue here
hi @MaxAst Thanks for replying. Unfortunately it's not the images. The app would not open with a simple call to openHostApp or send a network request. Do you think I should try excluding all expo modules that I don't need?
In simulator, everything function works beautifully.
In a release build, the share extension won't open. Like this:
https://github.com/user-attachments/assets/98a8e8e3-179d-435c-a986-93ff0ad07b8f
I learned about 100 MB memory limit for share extension in another issue thread, so, If I minimize my code to include only a react native view that has a text and text input field. It DOES work. Adding one more line to call "openHostApp" on press, will cause it to consistently not open in production build Adding other functions will too. I'm still doing more experiments.
If this is a memory usage issue, then I don't know how to keep developing because the current code is already very minimum.
app.json
package.json:
ShareExtension.tsx