You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the onPress handler of a touchable component, call Share.share(...).then(...).catch((error) => console.log(error));
Check JS console logs
Expected Behavior
The Share API should not error.
Actual Behavior
The Share API errors:
TypeError: Cannot read property 'showShareActionSheetWithOptions' of undefined
at Share.js:83
at tryCallTwo (core.js:45)
at doResolve (core.js:200)
at new Promise (core.js:66)
at Function.share (Share.js:82)
at ActivityGlobal._shareMessage (activityGlobal.js:76)
at ActivityGlobal.proxiedMethod (createPrototypeProxy.js:44)
at Object.touchableHandlePress (TouchableHighlight.js:285)
at Object._performSideEffectsForTransition (Touchable.js:746)
at Object._receiveSignal (Touchable.js:664)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
stalebot
added
the
Stale
There has been a lack of activity on this issue and it may be closed soon.
label
Jan 29, 2018
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Steps to Reproduce
onPress
handler of a touchable component, callShare.share(...).then(...).catch((error) => console.log(error));
Expected Behavior
The Share API should not error.
Actual Behavior
The Share API errors:
The error is on this line:
react-native/Libraries/Share/Share.js
Line 89 in eb0d647
ActionSheetManager
is undefined here.Reproducible Demo
See steps above.
The text was updated successfully, but these errors were encountered: