MCPcopy Index your code
hub / github.com/oblador/react-native-progress / render

Method render

Shapes/Arc.js:65–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 };
64
65 render() {
66 const {
67 startAngle,
68 endAngle,
69 radius,
70 offset,
71 direction,
72 strokeCap,
73 strokeWidth,
74 ...restProps
75 } = this.props;
76
77 const path = makeArcPath(
78 (offset.left || 0) + strokeWidth / 2,
79 (offset.top || 0) + strokeWidth / 2,
80 startAngle,
81 endAngle,
82 radius - strokeWidth / 2,
83 direction
84 );
85
86 return (
87 <Path
88 d={path}
89 strokeLinecap={strokeCap}
90 strokeWidth={strokeWidth}
91 {...restProps}
92 />
93 );
94 }
95}

Callers

nothing calls this directly

Calls 1

makeArcPathFunction · 0.85

Tested by

no test coverage detected