mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6e701ce080
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
@react-native/codegen
Installation
yarn add --dev @react-native/codegen
Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like
Testing
To run the tests in this package, run the following commands from the React Native root folder:
yarnto install the dependencies. You just need to run this onceyarn jest packages/react-native-codegen.