Skip to content

Commit 9e8bf52

Browse files
authored
chore: remove unnecessary override of prepareForRecycle method in header subview (#3447)
Remove unnecessary override of `prepareForRecycle` method This is not needed for two reasons: 1. we return `NO` from `shouldBeRecycled`, 2. current implementation only calls to super implementation. Closes software-mansion/react-native-screens-labs#675
1 parent d6c62ab commit 9e8bf52

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ios/RNSScreenStackHeaderSubview.mm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,6 @@ - (instancetype)initWithFrame:(CGRect)frame
138138

139139
#pragma mark - RCTComponentViewProtocol
140140

141-
- (void)prepareForRecycle
142-
{
143-
[super prepareForRecycle];
144-
}
145-
146141
- (void)updateProps:(react::Props::Shared const &)props oldProps:(react::Props::Shared const &)oldProps
147142
{
148143
const auto &newHeaderSubviewProps = *std::static_pointer_cast<const react::RNSScreenStackHeaderSubviewProps>(props);

0 commit comments

Comments
 (0)