React-native-share: Android - Share.Open resolves promise before upload complete

Created on 1 Aug 2018  路  4Comments  路  Source: react-native-share/react-native-share

Steps to reproduce

  1. Share and image with any app
  2. As soon as the bottom sheet opens it will resolve the promise

Expected behaviour

As well as it happens on iOS, the promise resolve/reject of Share.open only happens after the upload process is complete.

Actual behaviour

As soon as the bottom sheet is opened, the Share.open resolve its promise. Therefore, I can't know if the share process went successful or not.
Resolve result:

{
  "message": "OK",
}

Environment

  • React Native version: 0.52.0
  • React Native platform + platform version: Android 7.0

react-native-share

Version: npm version

bug android stale

Most helpful comment

@ruimfernandes this same bug is present for me using the React-Native Share API directly (https://facebook.github.io/react-native/docs/share), not sure that it will be able to be resolved in this package until the underlying behaviour in React-Native is fixed.

All 4 comments

I think this feature is not currently present in package?
maybe if you can send PR.

@ruimfernandes this same bug is present for me using the React-Native Share API directly (https://facebook.github.io/react-native/docs/share), not sure that it will be able to be resolved in this package until the underlying behaviour in React-Native is fixed.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

Was this page helpful?
0 / 5 - 0 ratings