diff --git a/Libraries/ART/ReactNativeART.js b/Libraries/ART/ReactNativeART.js index 12af4f0b2..ae2d0e58a 100644 --- a/Libraries/ART/ReactNativeART.js +++ b/Libraries/ART/ReactNativeART.js @@ -399,7 +399,19 @@ function extractStrokeJoin(strokeJoin) { // Note: ART has a notion of width and height on Shape but AFAIK it's a noop in // ReactART. -class Shape extends React.Component { +export type ShapeProps = {| + fill?: mixed, + stroke?: mixed, + strokeCap?: mixed, + strokeDash?: mixed, + strokeJoin?: mixed, + strokeWidth?: mixed, + x?: number, + y?: number, + opacity?: mixed, +|}; + +class Shape extends React.Component { render() { const props = this.props; const path = props.d || childrenAsString(props.children);