Parcourir la source

reset buttons to avoid react component recreation

yogevbd il y a 6 ans
Parent
révision
3761a976e0
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      lib/ios/RNNTopBarOptions.m

+ 6
- 0
lib/ios/RNNTopBarOptions.m Voir le fichier

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