mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 22:35:29 +08:00
Remove class loads for CoreModulesPackage
Summary: CoreModulePackages was following the old way of adding Native Modules to the Array list. This diff changes it to use names instead of class. Reviewed By: achen1 Differential Revision: D9996803 fbshipit-source-id: a6c3daf2193a2559db0908f9e26e339e03e4f8c7
This commit is contained in:
committed by
Facebook Github Bot
parent
36033bd0ed
commit
c31f79fe47
@@ -26,9 +26,9 @@ import static android.content.Context.UI_MODE_SERVICE;
|
||||
/**
|
||||
* Module that exposes Android Constants to JS.
|
||||
*/
|
||||
@ReactModule(name = "PlatformConstants")
|
||||
@ReactModule(name = AndroidInfoModule.NAME)
|
||||
public class AndroidInfoModule extends ReactContextBaseJavaModule {
|
||||
|
||||
public static final String NAME = "PlatformConstants";
|
||||
private static final String IS_TESTING = "IS_TESTING";
|
||||
|
||||
public AndroidInfoModule(ReactApplicationContext reactContext) {
|
||||
|
||||
Reference in New Issue
Block a user