react-native-share 9.2.2 → 9.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,13 +55,16 @@ public class RNShareImpl implements ActivityEventListener {
55
55
  WritableMap reply = Arguments.createMap();
56
56
  reply.putBoolean("success", false);
57
57
  reply.putString("message", "CANCELED");
58
+ TargetChosenReceiver.callbackResolve(reply);
58
59
  } else if (resultCode == Activity.RESULT_OK) {
59
60
  WritableMap reply = Arguments.createMap();
60
61
  reply.putBoolean("success", true);
62
+ TargetChosenReceiver.callbackResolve(reply);
61
63
  }
62
64
  }
63
65
  }
64
-
66
+
67
+ @Override
65
68
  public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent data) {
66
69
  onActivityResult(requestCode, resultCode, data);
67
70
  }
@@ -29,7 +29,7 @@ public class RNShare extends NativeRNShareSpec {
29
29
  }
30
30
 
31
31
  @Override
32
- public Map<String, Object> getConstants() {
32
+ public Map<String, Object> getTypedExportedConstants() {
33
33
  return delegate.getConstants();
34
34
  }
35
35
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-share",
3
3
  "description": "Social share, sending simple data to other apps.",
4
- "version": "9.2.2",
4
+ "version": "9.2.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/react-native-community/react-native-share.git"