alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
762 stars 396 forks source link

React native 60 issue with share extensions, 'openURL:options:completionHandler:' is unavailable: not available on iOS (App Extension) #168

Open mahmoudfelfel opened 5 years ago

mahmoudfelfel commented 5 years ago

Hi, I'm getting this error whenever I try to build the app, it was working fine on 0.57.3, but after upgrading to the latest version (0.60.4), I started getting this error.

I've opened an issue here https://github.com/facebook/react-native/issues/25792 on the react-native repo but with no response.

does anyone have a workaround to make this work with share extensions?

Thanks

alexkuttig commented 4 years ago

Same problem here. Did you find a solution? I was trying to exclude RCTLinking from my extension but that didn't work.

djorkaeffalexandre commented 4 years ago

Hello @alexkuttig and @mahmoudfelfel , I'm using https://github.com/RocketChat/rn-extensions-share and it works with this: https://github.com/facebook/react-native/issues/25792#issuecomment-517295859

ccorcos commented 4 years ago

Add this to the bottom of your Podfile

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO'
    end
  end
end
ajith-ab commented 4 years ago

use react-native-file-share-intent

frenberg commented 4 years ago

use react-native-file-share-intent

perhaps add a disclaimer about that it is your project?