London Escorts sunderland escorts 1v1.lol unblocked yohoho 76 https://www.symbaloo.com/mix/yohoho?lang=EN yohoho https://www.symbaloo.com/mix/agariounblockedpvp https://yohoho-io.app/ https://www.symbaloo.com/mix/agariounblockedschool1?lang=EN
13.7 C
New York
Wednesday, December 11, 2024

ios – Difficulty with Share Part utilizing Expo and React


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 🙂

Related Articles

Social Media Auto Publish Powered By : XYZScripts.com