Hi we are using the following library in our app, It works fine in Android and iOS but in Huawei devices the Share.open() doesn't return anything.
This is the library which we are using to share some texts.
import Share from "react-native-share";
const message = "Text to share";
Share.open({
message,
}).then((res) => {
console.log(res);
return true;
}).catch((err) => {
console.log("Exception: ", err);
return false;
});
In Huawei device it does open up the sharing dialog and I can choose any app to share the message and after coming back to our app, the app logic cannot proceed because the promise is not returning any value.
Im testing on Huawei P40Pro device which has only HMS available. However, even the devices with both HMS and GMS having the same issue.
Appreciate any help on this.