Explorar el Código

reset buttons to avoid react component recreation

yogevbd hace 6 años
padre
commit
3761a976e0
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      lib/ios/RNNTopBarOptions.m

+ 6
- 0
lib/ios/RNNTopBarOptions.m Ver fichero

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