React-native-share: Illegal callback invocation from native module. This callback type only permits a single invocation from native code

Created on 12 Sep 2019  路  1Comment  路  Source: react-native-share/react-native-share

Crash with error Illegal callback invocation from native module. This callback type only permits a single invocation from native code when you cancel sharing

Steps to reproduce

  1. Use iOS 13
  2. Open share dialog using Share.open
  3. Tap message for example
  4. Cancel message
  5. Cancel share
  6. Crash

Expected behaviour

There should be no crash

Actual behaviour

It crashed

Environment

  • React Native version: 0.60.5
  • React Native platform + platform version: iOS 13.0

react-native-share

Version: 2.0.0

Link to repo (highly encouraged)

https://github.com/

bug ios

>All comments

Hello, I am still having this problem and not only email, but facebook too.
I added :
else if (completed) {
successCallback(@[@(completed), RCTNullIfNil(activityType)]);
}

and it did not work

UPDATE

I read in #627 that using the master would fix and it did;
Thank you;

Was this page helpful?
0 / 5 - 0 ratings