mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
* mobile: reduce app size * editor: substitute all @mdi/js icons at build time * mobile: add script to tree shake icon font file * mobile: fix icon loading * mobile: remove html-entities dep * mobile: add missing icon fonts * mobile: include plain editor * mobile: add missing fonts * mobile: use webpack-bundle * mobile: keep generated fonts in repo * mobile: update fonts * mobile: fix duplicate key warning * mobile: update fonts * mobile: disable gesure on reminder sheet * mobile: update fonts * mobile: reset session correctly on logout * mobile: update icon fonts * mobile: set button action on reminder sheet * mobile: add missing icons * mobile: fix crash * mobile: fix right menus * mobile: remove console.log * mobile: disable bounce effect * mobile: update deps --------- Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
44 lines
1.2 KiB
Objective-C
44 lines
1.2 KiB
Objective-C
#import <Foundation/Foundation.h>
|
|
#import <ReactNativeShareExtension.h>
|
|
#import <React/RCTBundleURLProvider.h>
|
|
#import <React/RCTRootView.h>
|
|
#import <React/RCTLog.h>
|
|
#import <React/RCTEventEmitter.h>
|
|
|
|
@interface ShareViewController : ReactNativeShareExtension
|
|
@end
|
|
|
|
@implementation ShareViewController
|
|
|
|
@synthesize bridge = _bridge;
|
|
@synthesize callableJSModules = _callableJSModules;
|
|
|
|
+ (BOOL)requiresMainQueueSetup {
|
|
return true;
|
|
}
|
|
|
|
int rootViewTag = 0;
|
|
|
|
RCT_EXPORT_MODULE();
|
|
|
|
- (UIView*) shareView {
|
|
NSURL *jsCodeLocation;
|
|
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
|
|
moduleName:@"NotesnookShare"
|
|
initialProperties:nil
|
|
launchOptions:nil];
|
|
rootViewTag = rootView.tag;
|
|
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
|