Sfoglia il codice sorgente

reset buttons to avoid react component recreation

yogevbd 6 anni fa
parent
commit
3761a976e0
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6
    0
      lib/ios/RNNTopBarOptions.m

+ 6
- 0
lib/ios/RNNTopBarOptions.m Vedi File

@@ -166,6 +166,12 @@ extern const NSInteger BLUR_TOPBAR_TAG;
166 166
 	
167 167
 	viewController.navigationItem.hidesBackButton = [self.backButtonHidden boolValue];
168 168
 	
169
+	[self resetOptions];
170
+}
171
+
172
+- (void)resetOptions {
173
+	self.leftButtons = nil;
174
+	self.rightButtons = nil;
169 175
 }
170 176
 
171 177
 -(void)storeOriginalTopBarImages:(UIViewController*)viewController {