Skip to content

Commit 365a6ed

Browse files
committed
Group KeyboardAvoidingView iOS instance variables
1 parent 1e5ef7e commit 365a6ed

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

‎packages/react-native/React/Fabric/Mounting/ComponentViews/KeyboardAvoidingView/RCTKeyboardAvoidingViewComponentView.mm‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@ - (void)layoutSubviews
3434
@end
3535

3636
@implementation RCTKeyboardAvoidingViewComponentView {
37-
RCTKeyboardTrackingView *_trackingView;
38-
// Window subview, so no other code manages it and its frames are in window coordinates.
39-
UIView *_trackingContainerView;
40-
// The window guide never updates, and the guide of this view moves on resize.
41-
__weak UIView *_guideOwnerView;
37+
BOOL _isTrackingViewLaidOut;
4238
BOOL _isUpdateScheduled;
43-
CGFloat _minTrackingHeight;
44-
CGSize _guideOwnerSize;
4539
CGFloat _guideOwnerBottomSafeArea;
46-
BOOL _isTrackingViewLaidOut;
4740
CGFloat _keyboardInset;
48-
// Changes once per keyboard animation: at its end, or at the start of a hide.
49-
CGFloat _settledInset;
41+
CGFloat _minTrackingHeight;
42+
CGSize _guideOwnerSize;
5043
NSUInteger _keyboardAnimationCount;
44+
RCTKeyboardTrackingView *_trackingView;
45+
46+
// The window guide never updates, and the guide of this view moves on resize.
47+
__weak UIView *_guideOwnerView;
5148
// `height` shrinks this view, so measure it while the keyboard doesn't overlap.
5249
CGFloat _heightWithoutKeyboard;
50+
// Changes once per keyboard animation: at its end, or at the start of a hide.
51+
CGFloat _settledInset;
52+
// Window subview, so no other code manages it and its frames are in window coordinates.
53+
UIView *_trackingContainerView;
5354
}
5455

5556
- (instancetype)initWithFrame:(CGRect)frame

0 commit comments

Comments
 (0)