mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 22:12:42 +08:00
convert CoreModulesPackage to use @ReactModuleList
Reviewed By: astreet Differential Revision: D3809512 fbshipit-source-id: 658284c642d55cf5f90e16901fdf6d4229d6b762
This commit is contained in:
committed by
Facebook Github Bot 6
parent
31c8e20c8e
commit
367c71241a
@@ -139,7 +139,8 @@ public class ReactModuleSpecProcessor extends AbstractProcessor {
|
||||
TypeElement typeElement = mElements.getTypeElement(nativeModule);
|
||||
ReactModule reactModule = typeElement.getAnnotation(ReactModule.class);
|
||||
if (reactModule == null) {
|
||||
throw new ReactModuleSpecException(keyString + " not found.");
|
||||
throw new ReactModuleSpecException(keyString + " not found by ReactModuleSpecProcessor. " +
|
||||
"Did you forget to add the @ReactModule annotation the the native module?");
|
||||
}
|
||||
String valueString = new StringBuilder()
|
||||
.append("new ReactModuleInfo(")
|
||||
|
||||
Reference in New Issue
Block a user