Browse Source

Fix custom title bar issues (#2982)

frankenthumbs 6 years ago
parent
commit
b41e3c8114
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      lib/ios/RNNRootViewController.m

+ 5
- 1
lib/ios/RNNRootViewController.m View File

@@ -9,6 +9,7 @@
9 9
 @property (nonatomic, strong) NSString* componentName;
10 10
 @property (nonatomic) BOOL _statusBarHidden;
11 11
 @property (nonatomic) BOOL isExternalComponent;
12
+@property (nonatomic) BOOL _optionsApplied;
12 13
 @end
13 14
 
14 15
 @implementation RNNRootViewController
@@ -43,7 +44,10 @@
43 44
 
44 45
 -(void)viewWillAppear:(BOOL)animated{
45 46
 	[super viewWillAppear:animated];
46
-	[self.options applyOn:self];
47
+    if (!self._optionsApplied) {
48
+        [self.options applyOn:self];
49
+    }
50
+    self._optionsApplied = true;
47 51
 }
48 52
 
49 53
 -(void)viewDidAppear:(BOOL)animated {