Skip to content

contentInsets overwrites scrollIndicatorInsets on iOS #17586

@gastonmorixe

Description

@gastonmorixe

React Native 0.52. iOS 11

Steps to Reproduce

  1. ScrollView
  2. Set property contentInset

Expected Behavior

It should not affect scrollIndicatorInsets

Actual Behavior

Resets scrollIndicatorInsets to contentInset

Workaround

I fixed it for myself by commenting this line in RCTView.m

+ (void)autoAdjustInsetsForView:(UIView<RCTAutoInsetsProtocol> *)parentView
                 withScrollView:(UIScrollView *)scrollView
                   updateOffset:(BOOL)updateOffset
{
...
...
// scrollView.scrollIndicatorInsets = baseInset;  <<<----

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions