Skip to content

Commit e102d35

Browse files
committed
Fixed ios 13 card display and dismiss problem
1 parent 168e4b5 commit e102d35

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

ios/MOLPayReactManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ @implementation MOLPayReactManager
3434
[mpvc.view setBackgroundColor:[UIColor whiteColor]];
3535
[paymentDetailsMutable setObject:@"YES" forKey:@"is_submodule"];
3636
[paymentDetailsMutable setObject:@"molpay-mobile-xdk-reactnative-beta-ios" forKey:@"module_id"];
37-
[paymentDetailsMutable setObject:@"0" forKey:@"wrapper_version"];
37+
[paymentDetailsMutable setObject:@"1" forKey:@"wrapper_version"];
3838
mpvc.PaymentDetails = paymentDetailsMutable;
3939
UINavigationController *nc = [[UINavigationController alloc] initWithRootViewController:mpvc];
4040
mpvc.didDismiss = ^(NSDictionary *data) {

ios/MOLPayReactViewController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ -(void)start {
4343

4444

4545
mp.navigationItem.hidesBackButton = YES;
46-
46+
if (@available(iOS 13, *)) {
47+
mp.modalInPresentation = YES;
48+
}
49+
[nc setModalPresentationStyle: UIModalPresentationFullScreen];
4750
[self presentViewController:nc animated:NO completion:nil];
4851
}
4952

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "molpay-mobile-xdk-reactnative-beta",
3-
"version": "0.27.1",
3+
"version": "0.27.2",
44
"description": "Razer Merchant Services mobile payment for React Native (BETA)",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)