mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
rename javaModules -> nativeModules
Reviewed By: AaaChiuuu Differential Revision: D4631758 fbshipit-source-id: 3b62ada1bf32467b67cd8529d4b7873b43898ee4
This commit is contained in:
parent
e622d51e20
commit
87137cadd7
@ -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,
|
||||
|
@ -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<? extends NativeModule>[] javaModules();
|
||||
Class<? extends NativeModule>[] nativeModules();
|
||||
|
||||
/**
|
||||
* The View Managers in this list should be annotated with {@link ReactModule}.
|
||||
|
@ -87,7 +87,7 @@ public class ReactModuleSpecProcessor extends AbstractProcessor {
|
||||
ReactModuleList reactModuleList = typeElement.getAnnotation(ReactModuleList.class);
|
||||
List<String> nativeModules = new ArrayList<>();
|
||||
try {
|
||||
reactModuleList.javaModules(); // throws MirroredTypesException
|
||||
reactModuleList.nativeModules(); // throws MirroredTypesException
|
||||
} catch (MirroredTypesException mirroredTypesException) {
|
||||
List<? extends TypeMirror> typeMirrors = mirroredTypesException.getTypeMirrors();
|
||||
for (TypeMirror typeMirror : typeMirrors) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user