mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Get back to the tutorial
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<key>HostAppBundleIdentifier</key>
|
||||
<string>com.xmflsct.app.tooot</string>
|
||||
<key>HostAppURLScheme</key>
|
||||
<string>tooot://</string>
|
||||
<string>tooot-share://</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionAttributes</key>
|
||||
|
@@ -6,6 +6,8 @@
|
||||
#import <React/RCTLinkingManager.h>
|
||||
#import <React/RCTConvert.h>
|
||||
|
||||
#import <RNShareMenu/ShareMenuManager.h>
|
||||
|
||||
#if defined(FB_SONARKIT_ENABLED) && __has_include(<FlipperKit/FlipperClient.h>)
|
||||
#import <FlipperKit/FlipperClient.h>
|
||||
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
|
||||
@@ -81,6 +83,13 @@ static void InitializeFlipper(UIApplication *application) {
|
||||
|
||||
// Linking API
|
||||
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
|
||||
NSString *urlString = url.absoluteString;
|
||||
|
||||
if ([urlString hasPrefix:@"tooot-share://"]) {
|
||||
NSLog(@"Entered with the following string: %@s", urlString);
|
||||
return [ShareMenuManager application:application openURL:url options:options];
|
||||
}
|
||||
|
||||
return [RCTLinkingManager application:application openURL:url options:options];
|
||||
}
|
||||
|
||||
|
@@ -31,6 +31,7 @@
|
||||
<string>com.xmflsct.app.tooot</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>tooot-share</string>
|
||||
<string>tooot</string>
|
||||
</array>
|
||||
</dict>
|
||||
|
Reference in New Issue
Block a user