diff --git a/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java b/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java index d9ff55e0d..2827c4720 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java +++ b/ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java @@ -56,7 +56,7 @@ import static com.facebook.react.bridge.ReactMarkerConstants.PROCESS_CORE_REACT_ * view managers from). */ @ReactModuleList( - javaModules = { + nativeModules = { AndroidInfoModule.class, AnimationsDebugModule.class, DeviceEventManagerModule.class, diff --git a/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.java b/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.java index bf7cd7d9c..fc47945ac 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.java +++ b/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModuleList.java @@ -19,10 +19,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; public @interface ReactModuleList { /** - * The Java modules in this list should be annotated with {@link ReactModule}. - * @return List of Java modules in the package. + * The Native modules in this list should be annotated with {@link ReactModule}. + * @return List of Native modules in the package. */ - Class[] javaModules(); + Class[] nativeModules(); /** * The View Managers in this list should be annotated with {@link ReactModule}. diff --git a/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java b/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java index cf585894b..add1ef0b6 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java +++ b/ReactAndroid/src/main/java/com/facebook/react/module/processing/ReactModuleSpecProcessor.java @@ -87,7 +87,7 @@ public class ReactModuleSpecProcessor extends AbstractProcessor { ReactModuleList reactModuleList = typeElement.getAnnotation(ReactModuleList.class); List nativeModules = new ArrayList<>(); try { - reactModuleList.javaModules(); // throws MirroredTypesException + reactModuleList.nativeModules(); // throws MirroredTypesException } catch (MirroredTypesException mirroredTypesException) { List typeMirrors = mirroredTypesException.getTypeMirrors(); for (TypeMirror typeMirror : typeMirrors) {