mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
82e4d28e25
Summary: When you create a TurboModule from the JS side, we instantiate its Java class and simply make this `javaobject` a `jni::global_ref` in C++. But the reason why we need to make this a global ref is because `JavaTurboModule` needs it to be a global reference for method calls. Making this a `jni::global_ref` from the perspective to TurboModuleManager doesn't really make any sense. So, this diff refactors that bit of code. Differential Revision: D16622133 fbshipit-source-id: 6a5c20bb405b945c06378a3423d5e7eb38ef244c
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.