Skip to content

[Perf] Perform style.transform aggregation in native code #4468

Description

React Native has two different code paths for converting the style.transform property into a matrix that is then applied to a native view.

On iOS and Android, the processTransform function short-circuits. The transform property is passed down as-is to the native layer, offloading the matrix multiplication math to native code within the View implementation.

On other platforms (here, Windows), the JS function instead does this work directly.

I suggest changing RNW to match iOS and Android. Animations often use and update transforms frequently, so this could provide a performance boost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions