From fd3f20cfe032db4da3e8ea351622f25d6a664e19 Mon Sep 17 00:00:00 2001 From: Leow Date: Mon, 23 Oct 2017 14:48:53 +0900 Subject: [PATCH] fix ios background foreground --- ios/MOLPayReactManager.m | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/MOLPayReactManager.m b/ios/MOLPayReactManager.m index ca49c56..18ec8f0 100644 --- a/ios/MOLPayReactManager.m +++ b/ios/MOLPayReactManager.m @@ -38,6 +38,7 @@ @implementation MOLPayReactManager mpvc.PaymentDetails = paymentDetailsMutable; UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:mpvc]; mpvc.didDismiss = ^(NSDictionary *data) { + [[[[UIApplication sharedApplication] windows] firstObject] makeKeyAndVisible]; callback(@[data]); }; dispatch_sync(dispatch_get_main_queue(), ^{ diff --git a/package.json b/package.json index 6ecb99f..5128f4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "molpay-mobile-xdk-reactnative-beta", - "version": "0.16.1", + "version": "0.16.2", "description": "MOLPay mobile payment for React Native (BETA)", "scripts": { "test": "echo \"Error: no test specified\" && exit 1"