Przeglądaj źródła

Fixes modalPresentationStyle default value

yogevbd 6 lat temu
rodzic
commit
42cf18d53b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      lib/ios/RNNViewControllerPresenter.m

+ 1
- 1
lib/ios/RNNViewControllerPresenter.m Wyświetl plik

16
 	
16
 	
17
 	UIViewController* viewController = self.bindedViewController;
17
 	UIViewController* viewController = self.bindedViewController;
18
 	[viewController rnn_setBackgroundImage:[options.backgroundImage getWithDefaultValue:nil]];
18
 	[viewController rnn_setBackgroundImage:[options.backgroundImage getWithDefaultValue:nil]];
19
-	[viewController rnn_setModalPresentationStyle:[RCTConvert UIModalPresentationStyle:[options.modalPresentationStyle getWithDefaultValue:@"none"]]];
19
+	[viewController rnn_setModalPresentationStyle:[RCTConvert UIModalPresentationStyle:[options.modalPresentationStyle getWithDefaultValue:@"formSheet"]]];
20
 	[viewController rnn_setModalTransitionStyle:[RCTConvert UIModalTransitionStyle:[options.modalTransitionStyle getWithDefaultValue:@"coverVertical"]]];
20
 	[viewController rnn_setModalTransitionStyle:[RCTConvert UIModalTransitionStyle:[options.modalTransitionStyle getWithDefaultValue:@"coverVertical"]]];
21
 	[viewController rnn_setDrawBehindTopBar:[options.topBar.drawBehind getWithDefaultValue:NO]];
21
 	[viewController rnn_setDrawBehindTopBar:[options.topBar.drawBehind getWithDefaultValue:NO]];
22
 	[viewController rnn_setNavigationItemTitle:[options.topBar.title.text getWithDefaultValue:nil]];
22
 	[viewController rnn_setNavigationItemTitle:[options.topBar.title.text getWithDefaultValue:nil]];