22 lines
389 B
Objective-C
22 lines
389 B
Objective-C
//
|
|
// DoricModalPlugin.m
|
|
// Doric
|
|
//
|
|
// Created by pengfei.zhou on 2019/7/29.
|
|
//
|
|
|
|
#import "DoricModalPlugin.h"
|
|
#import "DoricRegistry.h"
|
|
|
|
|
|
@implementation DoricModalPlugin
|
|
|
|
- (void)toast:(NSString *)message withPromise:(DoricPromise *)promise {
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
NSLog(@"toast:%@", message);
|
|
[promise resolve:@"Resolved"];
|
|
});
|
|
}
|
|
|
|
@end
|