mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix codegen for Array<EdgeInsetsValue>
Summary: Changelog: [Internal][Added] - Add support for props of type Array<EdgeInsetsValue> Reviewed By: christophpurrer Differential Revision: D42651078 fbshipit-source-id: 3b8683ab199c3d590136cec0e6a67e9e85aaa2c0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
114e03ebe5
commit
04cf92fa9e
+2
@@ -93,6 +93,8 @@ function getReactDiffProcessValue(typeAnnotation: PropTypeAnnotation) {
|
||||
return j.literal(true);
|
||||
case 'PointPrimitive':
|
||||
return j.literal(true);
|
||||
case 'EdgeInsetsPrimitive':
|
||||
return j.literal(true);
|
||||
default:
|
||||
throw new Error(
|
||||
`Received unknown array native typeAnnotation: "${typeAnnotation.elementType.name}"`,
|
||||
|
||||
Reference in New Issue
Block a user