From 136dfc831230e5418db02d1202e60d23a95c17b6 Mon Sep 17 00:00:00 2001 From: Evan Worley Date: Thu, 1 Nov 2018 09:49:13 -0700 Subject: [PATCH] Flow strictifying AdsManagerAudienceImages.js Reviewed By: gkz Differential Revision: D10414273 fbshipit-source-id: 24c7e8955d78aeede8b0644cc9934e0b7fb5aa27 --- Libraries/ART/ReactNativeART.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Libraries/ART/ReactNativeART.js b/Libraries/ART/ReactNativeART.js index 12af4f0b2e..ae2d0e58a3 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);