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: https://github.com/reactwg/react-native-new-architecture/discussions/43#discussioncomment-2885450

Reviewed By: javache

Differential Revision: D37881453

fbshipit-source-id: 290ae428a720f00ed61f2a3e5c2c9bbf54e1ac6e
This commit is contained in:
Samuel Susla 2022-07-15 06:42:50 -07:00 коммит произвёл Facebook GitHub Bot
Родитель ce4246a05c
Коммит e98a835bfc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -63,7 +63,7 @@ class ScrollViewProps final : public ViewProps {
bool snapToStart{true}; bool snapToStart{true};
bool snapToEnd{true}; bool snapToEnd{true};
ContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior{ ContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior{
ContentInsetAdjustmentBehavior::Never}; ContentInsetAdjustmentBehavior::Automatic};
bool scrollToOverflowEnabled{false}; bool scrollToOverflowEnabled{false};
#pragma mark - DebugStringConvertible #pragma mark - DebugStringConvertible