mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e69be0ae55
Summary: We need to make our ExceptionsManagers into TurboModules. To do so, we need to first make them type-safe. This requires extending the base class code-generated from the NativeModule JavaScript spec. That base class extends `ReactContextBaseJavaModule`, which requires `ReactApplicationContext` to instantiate. Unfortunatley, our ExceptionsManagers need to be created before the `ReactInstanceManager`. This means that the `ReactApplicationContext` isn't available by the time they're created. In this diff, I make the `ReactContextBaseJavaModule` have a 0 argument constructor that simply sets its ReactApplicationContext to null. This will allow us to eventually migrate our ExceptionsManagers to the TurboModule system. Changelog: [Android][Added] - Give ReactContextBaseJavaModule a 0 arg ctor Reviewed By: mdvacca Differential Revision: D18717908 fbshipit-source-id: 203ffc49f2ec0b32a809402801795879d3b3a64b
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.