Skip to content

[0.84] Fix crash in tracking spring animations when toValue node is detached #1242

@kmsbernard

Description

@kmsbernard

Target Branch

0.84

Link to commit or PR to be picked

facebook/react-native@45de710

Description

This fixes an Android Native Animated crash in a core animation path.
During teardown (unmount/re-render/navigation), a tracked toValue node can be detached and RN may pass toValue = null into spring config, causing NullPointerException.

This change prevents null propagation and adds a regression test. It is a single, low-risk fix with no reliable app-level workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions