Skip to content

Layout animation is too big on Android #206

Closed

Description

@Nezz

Description

I've been hunting this bug for a while now and finally managed to make a minimal repro. The issue is that sometimes on Android our layout animation ends up being too big:

Image

Top has the bug, bottom is working correctly - but the repro is random.

It almost looks like the device density was miscalculated and the layout got stretched out too much. Having another animation running in the background is somehow causing this to happen.

Provide a Repro

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

Repro steps:

  1. bun android
  2. Click the button in the Android emulator/device (see video below)

Note: You might have to restart the app a couple times for this to happen (code reload isn't enough). The issue is random - you can end up with two incorrect, two correct, or one correct+one incorrect animation.

Repro rate is roughly 50% on the SDK 36 emulator.

Source .riv/.rev file

Included in the repro

Expected behavior

The border animation should be subtle

Screenshots

Untitled.mov

Device & Versions (please complete the following information)

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

Additional context

Activity

  1. added 6 commits that reference this issue on Apr 10, 2026
    c590fd9
    e520b6e
    5567aa0
    4cb25d3
    0bf8e21
    f2e412a
  2. Nezz commented on Apr 14, 2026

    @Nezz
    Author

    Thanks a lot 🙏

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

    androidbugSomething isn't workingruntimeRuntime issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions