react-native-story-share icon indicating copy to clipboard operation
react-native-story-share copied to clipboard

isAvailable returns false, but I have SnapChat and Instagram installed on my phone.

Open vishnau31 opened this issue 3 years ago • 1 comments

And when I run the function without putting a condition of isAvailable,

Possible Unhandled Promise Rejection (id: 4):
Error: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

vishnau31 avatar Jul 24 '21 06:07 vishnau31

you need to add a QUERY_ALL_PACKAGES permission:

<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />

more: https://github.com/react-native-share/react-native-share/issues/1009#issuecomment-824101426

retyui avatar Jul 30 '22 11:07 retyui