Skip to content

Rive applies transform with wrong origin #204

@Nezz

Description

@Nezz

Description

We have an animation that is displayed incorrectly. It has a scale transform applied to it, and it ends up being positioned further right than it should be:

Image

From the looks of it it seems that the origin of the transform is incorrect.

This used to work on iOS with version 0.2.3, but now with 0.4.0 it's broken on both platforms.

Provide a Repro

https://github.com/Nezz/expo-repro/tree/repro/RiveTransform

Source .riv/.rev file

Included in the repo

Expected behavior

The animation should be centered (which used to be the case on iOS).

Image

Screenshots

Device & Versions (please complete the following information)

  • Device: Samsung Galaxy Fold 3, API 36 emulator, iOS simulator
  • OS: Android 15, iOS 26.4
  • React Native Version: 0.83.4
  • Expo Version (if applicable): 55

Additional context

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