iOS: notch plugin implementation

This commit is contained in:
王劲鹏
2020-03-19 15:07:34 +08:00
committed by osborn
parent 9bb92f410e
commit c8f9e7dd33
4 changed files with 87 additions and 3 deletions

View File

@@ -51,6 +51,7 @@
#import "DoricUtil.h"
#import "DoricCoordinatorPlugin.h"
#import "DoricSwitchNode.h"
#import "DoricNotchPlugin.h"
@interface DoricLibraries : NSObject
@property(nonatomic, strong) NSMutableSet <DoricLibrary *> *libraries;
@@ -119,6 +120,7 @@ - (void)innerRegister {
[self registerNativePlugin:DoricNotificationPlugin.class withName:@"notification"];
[self registerNativePlugin:DoricStatusBarPlugin.class withName:@"statusbar"];
[self registerNativePlugin:DoricCoordinatorPlugin.class withName:@"coordinator"];
[self registerNativePlugin:DoricNotchPlugin.class withName:@"notch"];
[self registerViewNode:DoricStackNode.class withName:@"Stack"];
[self registerViewNode:DoricVLayoutNode.class withName:@"VLayout"];