Skip to content

Commit e98a835

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Fix default value for scrollView.contentInsetAdjustmentBehavior
Summary: Changelog: [internal] The dafault UIKit value of `UIScrollView.contentInsetAdjustmentBehavior` is automatic. Fabric had incorrect value never. source: https://developer.apple.com/documentation/uikit/uiscrollview/2902261-contentinsetadjustmentbehavior?language=objc This was causing bug for one navigation library that's migrating to Fabric: reactwg/react-native-new-architecture#43 (comment) Reviewed By: javache Differential Revision: D37881453 fbshipit-source-id: 290ae428a720f00ed61f2a3e5c2c9bbf54e1ac6e
1 parent ce4246a commit e98a835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/react/renderer/components/scrollview/ScrollViewProps.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class ScrollViewProps final : public ViewProps {
6363
bool snapToStart{true};
6464
bool snapToEnd{true};
6565
ContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior{
66-
ContentInsetAdjustmentBehavior::Never};
66+
ContentInsetAdjustmentBehavior::Automatic};
6767
bool scrollToOverflowEnabled{false};
6868

6969
#pragma mark - DebugStringConvertible

0 commit comments

Comments
 (0)