mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user