Quellcode durchsuchen

Fix custom title bar issues (#2982)

frankenthumbs vor 6 Jahren
Ursprung
Commit
b41e3c8114
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5
    1
      lib/ios/RNNRootViewController.m

+ 5
- 1
lib/ios/RNNRootViewController.m Datei anzeigen

@@ -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 {