We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66aba09 commit 136dfc8Copy full SHA for 136dfc8
Libraries/ART/ReactNativeART.js
@@ -399,7 +399,19 @@ function extractStrokeJoin(strokeJoin) {
399
// Note: ART has a notion of width and height on Shape but AFAIK it's a noop in
400
// ReactART.
401
402
-class Shape extends React.Component {
+export type ShapeProps = {|
403
+ fill?: mixed,
404
+ stroke?: mixed,
405
+ strokeCap?: mixed,
406
+ strokeDash?: mixed,
407
+ strokeJoin?: mixed,
408
+ strokeWidth?: mixed,
409
+ x?: number,
410
+ y?: number,
411
+ opacity?: mixed,
412
+|};
413
+
414
+class Shape extends React.Component<ShapeProps> {
415
render() {
416
const props = this.props;
417
const path = props.d || childrenAsString(props.children);
0 commit comments