convert CoreModulesPackage to use @ReactModuleList

Reviewed By: astreet

Differential Revision: D3809512

fbshipit-source-id: 658284c642d55cf5f90e16901fdf6d4229d6b762
This commit is contained in:
Aaron Chiu
2016-09-02 19:02:38 -07:00
committed by Facebook Github Bot 6
parent 31c8e20c8e
commit 367c71241a
9 changed files with 36 additions and 10 deletions

View File

@@ -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(")