浏览代码

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
 	
12
 	
13
 	[tabBarController rnn_setTabBarTestID:[options.bottomTabs.testID getWithDefaultValue:nil]];
13
 	[tabBarController rnn_setTabBarTestID:[options.bottomTabs.testID getWithDefaultValue:nil]];
14
 	[tabBarController rnn_setTabBarBackgroundColor:[options.bottomTabs.backgroundColor getWithDefaultValue:nil]];
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
 	[tabBarController rnn_setTabBarHideShadow:[options.bottomTabs.hideShadow getWithDefaultValue:NO]];
16
 	[tabBarController rnn_setTabBarHideShadow:[options.bottomTabs.hideShadow getWithDefaultValue:NO]];
17
 	[tabBarController rnn_setTabBarStyle:[RCTConvert UIBarStyle:[options.bottomTabs.barStyle getWithDefaultValue:@"default"]]];
17
 	[tabBarController rnn_setTabBarStyle:[RCTConvert UIBarStyle:[options.bottomTabs.barStyle getWithDefaultValue:@"default"]]];
18
 	[tabBarController rnn_setTabBarVisible:[options.bottomTabs.visible getWithDefaultValue:YES]];
18
 	[tabBarController rnn_setTabBarVisible:[options.bottomTabs.visible getWithDefaultValue:YES]];

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

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