瀏覽代碼

Changed default bottomTabs.translucent to false

yogevbd 6 年之前
父節點
當前提交
cbc0c001b3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1
    1
      lib/ios/RNNTabBarPresenter.m
  2. 1
    1
      lib/ios/ReactNativeNavigationTests/RNNTabBarPresenterTest.m

+ 1
- 1
lib/ios/RNNTabBarPresenter.m 查看文件

@@ -12,7 +12,7 @@
12 12
 	
13 13
 	[tabBarController rnn_setTabBarTestID:[options.bottomTabs.testID getWithDefaultValue:nil]];
14 14
 	[tabBarController rnn_setTabBarBackgroundColor:[options.bottomTabs.backgroundColor getWithDefaultValue:nil]];
15
-	[tabBarController rnn_setTabBarTranslucent:[options.bottomTabs.translucent getWithDefaultValue:YES]];
15
+	[tabBarController rnn_setTabBarTranslucent:[options.bottomTabs.translucent getWithDefaultValue:NO]];
16 16
 	[tabBarController rnn_setTabBarHideShadow:[options.bottomTabs.hideShadow getWithDefaultValue:NO]];
17 17
 	[tabBarController rnn_setTabBarStyle:[RCTConvert UIBarStyle:[options.bottomTabs.barStyle getWithDefaultValue:@"default"]]];
18 18
 	[tabBarController rnn_setTabBarVisible:[options.bottomTabs.visible getWithDefaultValue:YES]];

+ 1
- 1
lib/ios/ReactNativeNavigationTests/RNNTabBarPresenterTest.m 查看文件

@@ -25,7 +25,7 @@
25 25
 	RNNNavigationOptions* emptyOptions = [[RNNNavigationOptions alloc] initEmptyOptions];
26 26
 	[[self.bindedViewController expect] rnn_setTabBarTestID:nil];
27 27
 	[[self.bindedViewController expect] rnn_setTabBarBackgroundColor:nil];
28
-	[[self.bindedViewController expect] rnn_setTabBarTranslucent:YES];
28
+	[[self.bindedViewController expect] rnn_setTabBarTranslucent:NO];
29 29
 	[[self.bindedViewController expect] rnn_setTabBarHideShadow:NO];
30 30
     [[self.bindedViewController expect] rnn_setTabBarStyle:UIBarStyleDefault];
31 31
 	[[self.bindedViewController expect] rnn_setTabBarVisible:YES];