react-native-story-share
react-native-story-share copied to clipboard
isAvailable returns false, but I have SnapChat and Instagram installed on my phone.
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?
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