Browse Source

ios - added dismiss modal - no completed

Ran Greenberg 7 years ago
parent
commit
9e5463373c
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      ios/RNNBridgeModule.m

+ 7
- 0
ios/RNNBridgeModule.m View File

@@ -54,6 +54,13 @@ RCT_EXPORT_METHOD(showModal:(NSDictionary*)layout)
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 64
 - (void)assertReady
58 65
 {
59 66
 	if (![RNN instance].isReadyToReceiveCommands) {