Skip to content

Commit 48e89d2

Browse files
authored
fix(ios): internal picker state persisting with recycling (#1026)
* fix(ios): internal picker state persisting with recycling * Revert "fix(ios): internal picker state persisting with recycling" This reverts commit b51bd41. * feedback: no recycling instead
1 parent 914c8f2 commit 48e89d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ios/fabric/RNDateTimePickerComponentView.mm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,9 @@ + (ComponentDescriptorProvider)componentDescriptorProvider
115115
return concreteComponentDescriptorProvider<RNDateTimePickerComponentDescriptor>();
116116
}
117117

118-
- (void)prepareForRecycle
118+
+ (BOOL)shouldBeRecycled
119119
{
120-
[super prepareForRecycle];
121-
_state.reset();
120+
return NO;
122121
}
123122

124123
-(void)updateTextColorForPicker:(UIDatePicker *)picker color:(UIColor *)color

0 commit comments

Comments
 (0)