Skip to content

Children in a frozen ScrollView calls onLayout, but only on Android and not iOS #35

@tpcstld

Description

@tpcstld

When freezing a ScrollView in Android, the children of the ScrollView triggers onLayout with width, height, x, and y` all being 0. The main issue here is that it happens on only Android and not iOS. Ideally it would not happen on either platform.

Screen.Recording.2023-12-12.at.6.34.22.PM.mov

Sample code can be found here: https://github.com/tpcstld/react-native-test/tree/tpcstld/freeze-android

Steps to Repro:

  1. Open the app
  2. Click on Toggle Freeze

Observe that the last recorded height and width change on Android, but not iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions