Skip to content

Commit

Permalink
Fix default value for scrollView.contentInsetAdjustmentBehavior
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Jul 15, 2022
1 parent ce4246a commit e98a835
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ScrollViewProps final : public ViewProps {
bool snapToStart{true};
bool snapToEnd{true};
ContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior{
ContentInsetAdjustmentBehavior::Never};
ContentInsetAdjustmentBehavior::Automatic};
bool scrollToOverflowEnabled{false};

#pragma mark - DebugStringConvertible
Expand Down

0 comments on commit e98a835

Please sign in to comment.