瀏覽代碼

ios - added dismiss modal - no completed

Ran Greenberg 8 年之前
父節點
當前提交
9e5463373c
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      ios/RNNBridgeModule.m

+ 7
- 0
ios/RNNBridgeModule.m 查看文件

54
 	}];
54
 	}];
55
 }
55
 }
56
 
56
 
57
+RCT_EXPORT_METHOD(dismissModal:(NSString*)containerId)
58
+{
59
+	[UIApplication.sharedApplication.delegate.window.rootViewController dismissViewControllerAnimated:YES completion:^{
60
+		
61
+	}];
62
+}
63
+
57
 - (void)assertReady
64
 - (void)assertReady
58
 {
65
 {
59
 	if (![RNN instance].isReadyToReceiveCommands) {
66
 	if (![RNN instance].isReadyToReceiveCommands) {