Skip to content
Advertisement

reactNative.Share.open is undefined

I’m trying to use the share component with react native but I keep getting this error below. Any idea why ?

‘_reactNative.Share.open is not a function. (In ‘_reactNative.Share.open({ url: uri })’, ‘_reactNative.Share.open’ is undefined)’

Advertisement

Answer

This is because ‘Share.open()’ is now deprecated, use ‘Share.share()’ instead.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement