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 authored and Facebook Github Bot committed 2019-08-12 13:52:38 -07:00
1 parent 50b821df49
commit ebb412ab00
7 files changed
+54 -4

No files matched your search

@@ -77,6 +77,10 @@ function getImports(component: ComponentShape): Set<string> {
if (typeAnnotation.type === 'ArrayTypeAnnotation') {
imports.add('import com.facebook.react.bridge.ReadableArray;');
}
if (typeAnnotation.type === 'ObjectTypeAnnotation') {
imports.add('import com.facebook.react.bridge.ReadableMap;');
}
});
return imports;