mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add codegen support for EdgeInsets
Summary: Add codegen support for `EdgeInsets`. Reviewed By: rickhanlonii Differential Revision: D17500509 fbshipit-source-id: b2909fe296c51d3a47cc961c45294eead7707853
This commit is contained in:
committed by
Facebook Github Bot
parent
5cfe588993
commit
845cbec5cf
+3
@@ -83,6 +83,9 @@ function getJavaValueForProp(prop: PropTypeShape, imports): string {
|
||||
case 'PointPrimitive':
|
||||
addNullable(imports);
|
||||
return '@Nullable ReadableMap value';
|
||||
case 'EdgeInsetsPrimitive':
|
||||
addNullable(imports);
|
||||
return '@Nullable ReadableMap value';
|
||||
default:
|
||||
(typeAnnotation.name: empty);
|
||||
throw new Error('Received unknown NativePrimitiveTypeAnnotation');
|
||||
|
||||
Reference in New Issue
Block a user