I am attempting to implement sharing from the gallery for my app and utilizing the next part
https://ajith-ab.github.io/react-native-receive-sharing-intent
It really works nice with android however I am getting an error with ios fairly troublesome to resolve:
in AppDelegate.mm
I’ve
// Linking API
- (BOOL)utility:(UIApplication *)utility openURL:(NSURL *)url choices:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)choices [RCTLinkingManager application:application openURL:url options:options];
In ShareViewController.swift
I’ve
non-public func redirectToHostApp(sort: RedirectType) {
let url = URL(string: "(shareProtocol)://dataUrl=(sharedKey)#(sort)")
var responder = self as UIResponder?
let selectorOpenURL = sel_registerName("openURL:")
whereas (responder != nil) {
if (responder?.responds(to: selectorOpenURL))! {
let _ = responder?.carry out(selectorOpenURL, with: url)
}
responder = responder!.subsequent
}
extensionContext!.completeRequest(returningItems: [], completionHandler: nil)
}
However I am getting the next error:
BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(_:) must migrate to the non-deprecated UIApplication.open(_:choices:completionHandler:). Pressure returning false (NO).
Is one thing deprecated?
Any tip to rewrite it?
Thanks 🙂