react-native-share-menu
react-native-share-menu copied to clipboard
ios: No exact matches in call to instance method 'jsBundleURL' in ReactShareViewController.swift
Hi,
I tried to implement custom view following the doc, but I get error while building:

It works running the example (after fix error by adding in podfile: 'useFlipper!({ 'Flipper-Folly' => '2.5.3', 'Flipper' => '0.87.0', 'Flipper-RSocket' => '1.3.1' }) My project targets ios 12 rather than ios 10 as in example, but if i change to 10, I get an error saying that RNShareMenu need ios 11. I use exactly same index.share.js and Share.js that the example.
Note: I'm on Macbook M1
Any idea?
Same problem appeared after switching from "react-native": "0.64.3" => "react-native": "0.69.5". Have you found a solution?
Yes, after some research, I forked the package and made this change:
https://github.com/xavax31/react-native-share-menu/commit/20917a84d4dea48d14fd84902e61b01548e4861b
Same issue when implementing custom iOS share component.
Anybody found a solution that doesn't require a patch ?
BTW no reason to use a fork anymore now that patch-package exists
In the ReactShareViewController file change your code for this
return RCTBundleURLProvider.sharedSettings()?
.jsBundleURL(forBundleRoot:"index.share")
//.jsBundleURL(forBundleRoot: "index.share", fallbackResource: nil)
Removing ? worked for me