React Native Share not working on android devices intermittently.
Using version "react-native": "~0.63.0"
Share Method:
onShare = async () => {
try {
const result = await Share.share({
message: "Some Text" + " " + "Play store App url link"
});
if (result.action === Share.sharedAction) {
if (result.activityType) {
// shared with activity type of result.activityType
} else {
// shared
}
} else if (result.action === Share.dismissedAction) {
// dismissed
}
} catch (error) {
if (Platform.OS === appConst.ANDROID) {
ToastAndroid.show(appConst.ERROR_MESSAGE, ToastAndroid.SHORT);
}
//alert(error.message);
}
};
Error I am getting on device is:
