Commit 4a07aed5 authored by hl's avatar hl

update

parent 78ddbf60
...@@ -19,13 +19,13 @@ RCT_EXPORT_MODULE(); ...@@ -19,13 +19,13 @@ RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(edit:(NSString *)json result:(RCTResponseSenderBlock)block) { RCT_EXPORT_METHOD(edit:(NSString *)json result:(RCTResponseSenderBlock)block) {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
NSDictionary *dic = [Utils dictionaryWithJsonString:json]; NSDictionary *dic = [Utils dictionaryWithJsonString:json];
[[ImageEditorManger shardInstance] showImages:dic cb:^(ImageEditorModel * _Nullable editedParams) { [[[ImageEditorManger alloc] init] showImages:dic cb:^(ImageEditorModel * _Nullable editedParams) {
NSDictionary *result = [editedParams yy_modelToJSONObject]; NSDictionary *result = [editedParams yy_modelToJSONObject];
if (block) { if (block) {
block(@[result]); block(@[result]);
} }
}]; }];
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment