Expensify / react-native-share-menu

A module for React Native that adds your app to the share menu of the device
MIT License
652 stars 237 forks source link

ShareMenuReactView.continueInApp causes origin app to freeze #282

Open ajyang818 opened 11 months ago

ajyang818 commented 11 months ago

I've implemented this library in my React Native app, and have also implemented the steps for SHARE_EXTENSION_VIEW code, in a way which will cause any share intent to directly open my app, as per this Stack Overflow answer. Notably, this is done via ShareMenuReactView.continueInApp({shareInfo: data});

This flow works great:

But, when I return to the origin app, it's frozen - I have to force stop it and restart it. In my testing, it seems that both the NY Times and Wikipedia apps freeze, but interestingly Yelp, the Economist, and Chrome do not. I don't have another app on my phone that has the behavior of completely opening the destination app, so hard to tell if NY Times and Wikipedia would also freeze with those.

Is this likely an issue with my app, or with the origin app? Any tips on how to debug further?