mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
34 lines
1.0 KiB
Objective-C
34 lines
1.0 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <ReactNativeShareExtension.h>
|
|
#import <React/RCTBundleURLProvider.h>
|
|
#import <React/RCTRootView.h>
|
|
#import <React/RCTLog.h>
|
|
|
|
@interface ShareViewController : ReactNativeShareExtension
|
|
@end
|
|
|
|
@implementation ShareViewController
|
|
|
|
RCT_EXPORT_MODULE();
|
|
|
|
- (UIView*) shareView {
|
|
NSURL *jsCodeLocation;
|
|
|
|
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
|
|
|
|
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
|
|
moduleName:@"NotesnookShare"
|
|
initialProperties:nil
|
|
launchOptions:nil];
|
|
rootView.window.backgroundColor =[UIColor clearColor];
|
|
rootView.layer.shadowOpacity = 0;
|
|
rootView.backgroundColor = [UIColor clearColor];
|
|
|
|
// Uncomment for console output in Xcode console for release mode on device:
|
|
// RCTSetLogThreshold(RCTLogLevelInfo - 1);
|
|
|
|
return rootView;
|
|
}
|
|
|
|
@end
|