mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1d45b20b6c
Summary: Allows `CxxModule` objects to set their `instance_` member before `getMethods()` is invoked, allowing for the `Method` callbacks to capture a weak reference to `getInstance()` if needed. ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [General] [Fixed] - Set CxxModules' Instance before retrieving their Method vector. Pull Request resolved: https://github.com/facebook/react-native/pull/32719 Test Plan: Ensure this statement swap does not break any scenarios with existing CI validation. Reviewed By: JoshuaGross Differential Revision: D32955616 Pulled By: genkikondo fbshipit-source-id: fd7a23ca2c12c01882ff1600f5aef86b1fe4a984