浏览代码

Merge branch 'master' into v2

Daniel Zlotin 8 年前
父节点
当前提交
1b1c847741
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      ios/RCCViewController.m

+ 7
- 0
ios/RCCViewController.m 查看文件

194
 
194
 
195
 -(void)setStyleOnAppearForViewController:(UIViewController*)viewController
195
 -(void)setStyleOnAppearForViewController:(UIViewController*)viewController
196
 {
196
 {
197
+    NSString *screenBackgroundColor = self.navigatorStyle[@"screenBackgroundColor"];
198
+    if (screenBackgroundColor)
199
+    {
200
+        UIColor *color = screenBackgroundColor != (id)[NSNull null] ? [RCTConvert UIColor:screenBackgroundColor] : nil;
201
+        self.view.backgroundColor = color;
202
+    }
203
+ 
197
     NSString *navBarBackgroundColor = self.navigatorStyle[@"navBarBackgroundColor"];
204
     NSString *navBarBackgroundColor = self.navigatorStyle[@"navBarBackgroundColor"];
198
     if (navBarBackgroundColor)
205
     if (navBarBackgroundColor)
199
     {
206
     {