Skip to content

Commit

Permalink
Flow strictifying AdsManagerAudienceImages.js
Browse files Browse the repository at this point in the history
Reviewed By: gkz

Differential Revision: D10414273

fbshipit-source-id: 24c7e8955d78aeede8b0644cc9934e0b7fb5aa27
  • Loading branch information
Evan Worley authored and facebook-github-bot committed Nov 1, 2018
1 parent 66aba09 commit 136dfc8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Libraries/ART/ReactNativeART.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<ShapeProps> {
render() {
const props = this.props;
const path = props.d || childrenAsString(props.children);
Expand Down

0 comments on commit 136dfc8

Please sign in to comment.