mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50592 For unclear reasons this is crashing on some devices when dereferencing the module ref. Instead we can just access the existing global_ref to the module instance and avoid any deallocation timing issues. Also added some additional safeguards and validation against incorrect JNI invocations. Changelog: [Android][Fixed] Fix crash when TurboModule event emitters are used on arm32 Reviewed By: cortinico Differential Revision: D72716972 fbshipit-source-id: 3803329048d8388b3d30c9cb55a857e399569eea