This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/iOS/Pod/Classes/Plugin/DoricModalPlugin.m

22 lines
389 B
Mathematica
Raw Normal View History

2019-07-29 20:23:00 +08:00
//
// DoricModalPlugin.m
// Doric
//
// Created by pengfei.zhou on 2019/7/29.
//
#import "DoricModalPlugin.h"
#import "DoricRegistry.h"
@implementation DoricModalPlugin
2019-07-30 11:25:05 +08:00
- (void)toast:(NSString *)message withPromise:(DoricPromise *)promise {
2019-07-29 20:23:00 +08:00
dispatch_async(dispatch_get_main_queue(), ^{
2019-10-12 14:48:19 +08:00
NSLog(@"toast:%@", message);
2019-07-30 11:25:05 +08:00
[promise resolve:@"Resolved"];
2019-07-29 20:23:00 +08:00
});
}
@end