소스 검색

Merge branch 'master' into v2

Daniel Zlotin 8 년 전
부모
커밋
1b1c847741
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7
    0
      ios/RCCViewController.m

+ 7
- 0
ios/RCCViewController.m 파일 보기

@@ -194,6 +194,13 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
194 194
 
195 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 204
     NSString *navBarBackgroundColor = self.navigatorStyle[@"navBarBackgroundColor"];
198 205
     if (navBarBackgroundColor)
199 206
     {