SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

use weak_ptr of NativeAnimatedNodesManager in AnimatedModule (#54564)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54564

## Changelog:

[General] [Internal] - use weak_ptr of NativeAnimatedNodesManager in AnimatedModule

- so NativeAnimatedNodesManagerProvider is the only owner of NodesManager
- Also referencing a nodesManager weak_ptr in the scheduleOnUI call, to prevent AnimatedModule to use a partially destroyed NodesManager

Reviewed By: sanjay-io

Differential Revision: D87229271

fbshipit-source-id: 619089afcae356fb7a8c3eaf9b101f3ee709bfcc
Z
Zeya Peng committed
27b5ae2dfe7b2e027158090a8d3bf21eb23c5bb1
Parent: 4f20218
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 11/17/2025, 8:52:46 PM