Jobeso / react-native-story-share

Share your images to instagram and snapchat stories with react native.
107 stars 54 forks source link

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

Open vishnau31 opened 3 years ago

vishnau31 commented 3 years ago

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?
retyui commented 2 years ago

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