mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +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:
committed by
Facebook Github Bot
parent
50b821df49
commit
ebb412ab00
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user