소스 검색

reset buttons to avoid react component recreation

yogevbd 6 년 전
부모
커밋
3761a976e0
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      lib/ios/RNNTopBarOptions.m

+ 6
- 0
lib/ios/RNNTopBarOptions.m 파일 보기

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