Skip to content

Sibling layout change doesn't trigger other siblings onLayout. #20617

Closed
@cheng-kang

Description

@cheng-kang

Environment

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
      Memory: 182.39 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.4.0 - /usr/local/bin/node
      Yarn: 1.5.1 - /usr/local/bin/yarn
      npm: 6.1.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.3, macOS 10.13, tvOS 11.3, watchOS 4.3
    IDEs:
      Android Studio: 3.1 AI-173.4670197
      Xcode: 9.3/9Q117m - /usr/bin/xcodebuild
    npmPackages:
      @storybook/react: ^3.4.5 => 3.4.8
      react: ^16.3.2 => 16.4.1
      react-native: ^0.56.0 => 0.56.0
    npmGlobalPackages:
      create-react-native-app: 1.0.0
      react-native-cli: 2.0.1

Description

Sibling layout change doesn't trigger other siblings onLayout.

Reproducible Demo

https://codesandbox.io/s/k2r38p70jr

This is a react-native-web example. But I've tested it with react-native on iOS simulator, it has the same behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions