Add Object props support for Java

Summary: This diff adds Java handling for object props

Reviewed By: TheSavior

Differential Revision: D16759139

fbshipit-source-id: e47956dc43cd1eb4abd58636bf111dde8d7244cc
This commit is contained in:
Rick Hanlon
2019-08-12 13:48:09 -07:00
committed by Facebook Github Bot
parent 50b821df49
commit ebb412ab00
7 changed files with 54 additions and 4 deletions
@@ -69,7 +69,8 @@ function getJavaValueForProp(prop: PropTypeShape, imports): string {
return '@Nullable ReadableArray value';
}
case 'ObjectTypeAnnotation': {
throw new Error('Object type is not implemented');
addNullable(imports);
return '@Nullable ReadableMap value';
}
case 'StringEnumTypeAnnotation':
addNullable(imports);