Ver código fonte

ios - added dismiss modal - no completed

Ran Greenberg 7 anos atrás
pai
commit
9e5463373c
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7
    0
      ios/RNNBridgeModule.m

+ 7
- 0
ios/RNNBridgeModule.m Ver arquivo

@@ -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) {