Skip to content

Commit

Permalink
_lastSize recycle
Browse files Browse the repository at this point in the history
  • Loading branch information
coado committed Nov 28, 2024
1 parent 396abd4 commit 9799d47
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ios/RNSScreenStackHeaderConfig.mm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ + (BOOL)RNSisBlank:(NSString *)string

@implementation RNSScreenStackHeaderConfig {
NSMutableArray<RNSScreenStackHeaderSubview *> *_reactSubviews;
NSDirectionalEdgeInsets _lastHeaderInsets;
#ifdef RCT_NEW_ARCH_ENABLED
BOOL _initialPropsSet;
CGSize _lastSize;
Expand All @@ -69,6 +68,7 @@ @implementation RNSScreenStackHeaderConfig {
RCTImageLoader *imageLoader;
#endif // !NDEBUG
#else
NSDirectionalEdgeInsets _lastHeaderInsets;
__weak RCTBridge *_bridge;
#endif
}
Expand Down Expand Up @@ -952,7 +952,12 @@ - (void)prepareForRecycle
{
[super prepareForRecycle];
_initialPropsSet = NO;

#ifdef RCT_NEW_ARCH_ENABLED
_lastSize = CGSize();
#else
_lastHeaderInsets = NSDirectionalEdgeInsets{};
#endif
}

- (NSNumber *)getFontSizePropValue:(int)value
Expand Down

0 comments on commit 9799d47

Please sign in to comment.