Move a cursor along an arc of circle react-native-svg












1














Hi I'm trying to build a range input that is not really circular but a arc of circle like in the picture below.



range input



Here is how I've manage to get this result:






import React, { Component } from 'react';
import { PanResponder, View, Dimensions } from 'react-native';
import Svg, { Path, Circle, G, Text, Defs, LinearGradient, Stop } from 'react-native-svg';

import { defaultProps } from './propTypes';

export default class CircleSlider extends Component {
constructor(props){
super(props);
console.log(props.value)
this.state = {
angle: props.value,
cx: 232 / 2,
cy: 208 / 2,
r: this.props.dialRadius,
};
}

componentWillMount() {
this._panResponder = PanResponder.create({
onStartShouldSetPanResponder: (e, gs) => true,
onStartShouldSetPanResponderCapture: (e, gs) => true,
onMoveShouldSetPanResponder: (e, gs) => true,
onMoveShouldSetPanResponderCapture: (e, gs) => true,
onPanResponderMove: (e, gs) => {
const xOrigin = this.props.xCenter - (this.props.dialRadius + this.props.btnRadius);
const yOrigin = this.props.yCenter - (this.props.dialRadius + this.props.btnRadius);
const a = this.cartesianToPolar(gs.moveX - xOrigin, gs.moveY - yOrigin);
this.setState({ angle: a });
}
});
}

cartesianToPolar(x, y) {
const { dialRadius, btnRadius } = this.props;
const hC = dialRadius + btnRadius;

if (x === 0) {
return y > hC ? 0 : 180;
} else if (y === 0) {
return x > hC ? 90 : 270;
} else {
return (Math.round((Math.atan((y - hC) / (x - hC))) * 180 / Math.PI) + (x > hC ? 90 : 270));
}
}

polarToCartesian(centerX, centerY, radius, angleInDegrees) {
var angleInRadians = (angleInDegrees-224) * Math.PI / 180.0;

return {
x: centerX + (radius * Math.cos(angleInRadians)),
y: centerY + (radius * Math.sin(angleInRadians))
};
}

describeArc(x, y, radius, startAngle, endAngle){

var start = this.polarToCartesian(x, y, radius, endAngle);
var end = this.polarToCartesian(x, y, radius, startAngle);

var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";

var d = [
"M", start.x, start.y,
"A", radius, radius, 0, largeArcFlag, 0, end.x, end.y + verticalScaleToAdd
].join(" ");

return d;
}

render() {
const { dialWidth, dialRadius, btnRadius, xCenter, yCenter } = this.props;
const bR = btnRadius;
const endCoord = this.polarToCartesian(xCenter, yCenter, dialRadius, this.state.angle);
console.log(this.state.angle)
return (
<Svg
ref="circleslider"
width="100%"
height="100%"
>
<Path
stroke="blue"
strokeWidth={dialWidth}
fill='none'
d={this.describeArc(xCenter, yCenter, dialRadius, 0, 270)}
strokeLinecap="round"
/>

<G
x={(endCoord.x - bR).toString()}
y={(endCoord.y - bR) - dialWidth).toString()}
>
<Circle
r={bR.toString()}
cx={bR.toString()}
cy={bR.toString()}
fill={"black"}
{...this._panResponder.panHandlers}
/>
<Text
x={bR.toString()}
y={(bR-(this.props.textSize/2)).toString()}
fontSize={this.props.textSize}
fill={this.props.textColor}
textAnchor="middle"
>
{this.props.onValueChange(this.state.angle)+''}
</Text>
</G>
</Svg>
)
}
}

CircleSlider.defaultProps = defaultProps;





My current problem is that the cursor does not follow well the drag movement position, furthermore, when I drag it to the top, it is not well centered with the stroke. I think the problem comes from cartesianToPolar function.










share|improve this question





























    1














    Hi I'm trying to build a range input that is not really circular but a arc of circle like in the picture below.



    range input



    Here is how I've manage to get this result:






    import React, { Component } from 'react';
    import { PanResponder, View, Dimensions } from 'react-native';
    import Svg, { Path, Circle, G, Text, Defs, LinearGradient, Stop } from 'react-native-svg';

    import { defaultProps } from './propTypes';

    export default class CircleSlider extends Component {
    constructor(props){
    super(props);
    console.log(props.value)
    this.state = {
    angle: props.value,
    cx: 232 / 2,
    cy: 208 / 2,
    r: this.props.dialRadius,
    };
    }

    componentWillMount() {
    this._panResponder = PanResponder.create({
    onStartShouldSetPanResponder: (e, gs) => true,
    onStartShouldSetPanResponderCapture: (e, gs) => true,
    onMoveShouldSetPanResponder: (e, gs) => true,
    onMoveShouldSetPanResponderCapture: (e, gs) => true,
    onPanResponderMove: (e, gs) => {
    const xOrigin = this.props.xCenter - (this.props.dialRadius + this.props.btnRadius);
    const yOrigin = this.props.yCenter - (this.props.dialRadius + this.props.btnRadius);
    const a = this.cartesianToPolar(gs.moveX - xOrigin, gs.moveY - yOrigin);
    this.setState({ angle: a });
    }
    });
    }

    cartesianToPolar(x, y) {
    const { dialRadius, btnRadius } = this.props;
    const hC = dialRadius + btnRadius;

    if (x === 0) {
    return y > hC ? 0 : 180;
    } else if (y === 0) {
    return x > hC ? 90 : 270;
    } else {
    return (Math.round((Math.atan((y - hC) / (x - hC))) * 180 / Math.PI) + (x > hC ? 90 : 270));
    }
    }

    polarToCartesian(centerX, centerY, radius, angleInDegrees) {
    var angleInRadians = (angleInDegrees-224) * Math.PI / 180.0;

    return {
    x: centerX + (radius * Math.cos(angleInRadians)),
    y: centerY + (radius * Math.sin(angleInRadians))
    };
    }

    describeArc(x, y, radius, startAngle, endAngle){

    var start = this.polarToCartesian(x, y, radius, endAngle);
    var end = this.polarToCartesian(x, y, radius, startAngle);

    var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";

    var d = [
    "M", start.x, start.y,
    "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y + verticalScaleToAdd
    ].join(" ");

    return d;
    }

    render() {
    const { dialWidth, dialRadius, btnRadius, xCenter, yCenter } = this.props;
    const bR = btnRadius;
    const endCoord = this.polarToCartesian(xCenter, yCenter, dialRadius, this.state.angle);
    console.log(this.state.angle)
    return (
    <Svg
    ref="circleslider"
    width="100%"
    height="100%"
    >
    <Path
    stroke="blue"
    strokeWidth={dialWidth}
    fill='none'
    d={this.describeArc(xCenter, yCenter, dialRadius, 0, 270)}
    strokeLinecap="round"
    />

    <G
    x={(endCoord.x - bR).toString()}
    y={(endCoord.y - bR) - dialWidth).toString()}
    >
    <Circle
    r={bR.toString()}
    cx={bR.toString()}
    cy={bR.toString()}
    fill={"black"}
    {...this._panResponder.panHandlers}
    />
    <Text
    x={bR.toString()}
    y={(bR-(this.props.textSize/2)).toString()}
    fontSize={this.props.textSize}
    fill={this.props.textColor}
    textAnchor="middle"
    >
    {this.props.onValueChange(this.state.angle)+''}
    </Text>
    </G>
    </Svg>
    )
    }
    }

    CircleSlider.defaultProps = defaultProps;





    My current problem is that the cursor does not follow well the drag movement position, furthermore, when I drag it to the top, it is not well centered with the stroke. I think the problem comes from cartesianToPolar function.










    share|improve this question



























      1












      1








      1







      Hi I'm trying to build a range input that is not really circular but a arc of circle like in the picture below.



      range input



      Here is how I've manage to get this result:






      import React, { Component } from 'react';
      import { PanResponder, View, Dimensions } from 'react-native';
      import Svg, { Path, Circle, G, Text, Defs, LinearGradient, Stop } from 'react-native-svg';

      import { defaultProps } from './propTypes';

      export default class CircleSlider extends Component {
      constructor(props){
      super(props);
      console.log(props.value)
      this.state = {
      angle: props.value,
      cx: 232 / 2,
      cy: 208 / 2,
      r: this.props.dialRadius,
      };
      }

      componentWillMount() {
      this._panResponder = PanResponder.create({
      onStartShouldSetPanResponder: (e, gs) => true,
      onStartShouldSetPanResponderCapture: (e, gs) => true,
      onMoveShouldSetPanResponder: (e, gs) => true,
      onMoveShouldSetPanResponderCapture: (e, gs) => true,
      onPanResponderMove: (e, gs) => {
      const xOrigin = this.props.xCenter - (this.props.dialRadius + this.props.btnRadius);
      const yOrigin = this.props.yCenter - (this.props.dialRadius + this.props.btnRadius);
      const a = this.cartesianToPolar(gs.moveX - xOrigin, gs.moveY - yOrigin);
      this.setState({ angle: a });
      }
      });
      }

      cartesianToPolar(x, y) {
      const { dialRadius, btnRadius } = this.props;
      const hC = dialRadius + btnRadius;

      if (x === 0) {
      return y > hC ? 0 : 180;
      } else if (y === 0) {
      return x > hC ? 90 : 270;
      } else {
      return (Math.round((Math.atan((y - hC) / (x - hC))) * 180 / Math.PI) + (x > hC ? 90 : 270));
      }
      }

      polarToCartesian(centerX, centerY, radius, angleInDegrees) {
      var angleInRadians = (angleInDegrees-224) * Math.PI / 180.0;

      return {
      x: centerX + (radius * Math.cos(angleInRadians)),
      y: centerY + (radius * Math.sin(angleInRadians))
      };
      }

      describeArc(x, y, radius, startAngle, endAngle){

      var start = this.polarToCartesian(x, y, radius, endAngle);
      var end = this.polarToCartesian(x, y, radius, startAngle);

      var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";

      var d = [
      "M", start.x, start.y,
      "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y + verticalScaleToAdd
      ].join(" ");

      return d;
      }

      render() {
      const { dialWidth, dialRadius, btnRadius, xCenter, yCenter } = this.props;
      const bR = btnRadius;
      const endCoord = this.polarToCartesian(xCenter, yCenter, dialRadius, this.state.angle);
      console.log(this.state.angle)
      return (
      <Svg
      ref="circleslider"
      width="100%"
      height="100%"
      >
      <Path
      stroke="blue"
      strokeWidth={dialWidth}
      fill='none'
      d={this.describeArc(xCenter, yCenter, dialRadius, 0, 270)}
      strokeLinecap="round"
      />

      <G
      x={(endCoord.x - bR).toString()}
      y={(endCoord.y - bR) - dialWidth).toString()}
      >
      <Circle
      r={bR.toString()}
      cx={bR.toString()}
      cy={bR.toString()}
      fill={"black"}
      {...this._panResponder.panHandlers}
      />
      <Text
      x={bR.toString()}
      y={(bR-(this.props.textSize/2)).toString()}
      fontSize={this.props.textSize}
      fill={this.props.textColor}
      textAnchor="middle"
      >
      {this.props.onValueChange(this.state.angle)+''}
      </Text>
      </G>
      </Svg>
      )
      }
      }

      CircleSlider.defaultProps = defaultProps;





      My current problem is that the cursor does not follow well the drag movement position, furthermore, when I drag it to the top, it is not well centered with the stroke. I think the problem comes from cartesianToPolar function.










      share|improve this question















      Hi I'm trying to build a range input that is not really circular but a arc of circle like in the picture below.



      range input



      Here is how I've manage to get this result:






      import React, { Component } from 'react';
      import { PanResponder, View, Dimensions } from 'react-native';
      import Svg, { Path, Circle, G, Text, Defs, LinearGradient, Stop } from 'react-native-svg';

      import { defaultProps } from './propTypes';

      export default class CircleSlider extends Component {
      constructor(props){
      super(props);
      console.log(props.value)
      this.state = {
      angle: props.value,
      cx: 232 / 2,
      cy: 208 / 2,
      r: this.props.dialRadius,
      };
      }

      componentWillMount() {
      this._panResponder = PanResponder.create({
      onStartShouldSetPanResponder: (e, gs) => true,
      onStartShouldSetPanResponderCapture: (e, gs) => true,
      onMoveShouldSetPanResponder: (e, gs) => true,
      onMoveShouldSetPanResponderCapture: (e, gs) => true,
      onPanResponderMove: (e, gs) => {
      const xOrigin = this.props.xCenter - (this.props.dialRadius + this.props.btnRadius);
      const yOrigin = this.props.yCenter - (this.props.dialRadius + this.props.btnRadius);
      const a = this.cartesianToPolar(gs.moveX - xOrigin, gs.moveY - yOrigin);
      this.setState({ angle: a });
      }
      });
      }

      cartesianToPolar(x, y) {
      const { dialRadius, btnRadius } = this.props;
      const hC = dialRadius + btnRadius;

      if (x === 0) {
      return y > hC ? 0 : 180;
      } else if (y === 0) {
      return x > hC ? 90 : 270;
      } else {
      return (Math.round((Math.atan((y - hC) / (x - hC))) * 180 / Math.PI) + (x > hC ? 90 : 270));
      }
      }

      polarToCartesian(centerX, centerY, radius, angleInDegrees) {
      var angleInRadians = (angleInDegrees-224) * Math.PI / 180.0;

      return {
      x: centerX + (radius * Math.cos(angleInRadians)),
      y: centerY + (radius * Math.sin(angleInRadians))
      };
      }

      describeArc(x, y, radius, startAngle, endAngle){

      var start = this.polarToCartesian(x, y, radius, endAngle);
      var end = this.polarToCartesian(x, y, radius, startAngle);

      var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";

      var d = [
      "M", start.x, start.y,
      "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y + verticalScaleToAdd
      ].join(" ");

      return d;
      }

      render() {
      const { dialWidth, dialRadius, btnRadius, xCenter, yCenter } = this.props;
      const bR = btnRadius;
      const endCoord = this.polarToCartesian(xCenter, yCenter, dialRadius, this.state.angle);
      console.log(this.state.angle)
      return (
      <Svg
      ref="circleslider"
      width="100%"
      height="100%"
      >
      <Path
      stroke="blue"
      strokeWidth={dialWidth}
      fill='none'
      d={this.describeArc(xCenter, yCenter, dialRadius, 0, 270)}
      strokeLinecap="round"
      />

      <G
      x={(endCoord.x - bR).toString()}
      y={(endCoord.y - bR) - dialWidth).toString()}
      >
      <Circle
      r={bR.toString()}
      cx={bR.toString()}
      cy={bR.toString()}
      fill={"black"}
      {...this._panResponder.panHandlers}
      />
      <Text
      x={bR.toString()}
      y={(bR-(this.props.textSize/2)).toString()}
      fontSize={this.props.textSize}
      fill={this.props.textColor}
      textAnchor="middle"
      >
      {this.props.onValueChange(this.state.angle)+''}
      </Text>
      </G>
      </Svg>
      )
      }
      }

      CircleSlider.defaultProps = defaultProps;





      My current problem is that the cursor does not follow well the drag movement position, furthermore, when I drag it to the top, it is not well centered with the stroke. I think the problem comes from cartesianToPolar function.






      import React, { Component } from 'react';
      import { PanResponder, View, Dimensions } from 'react-native';
      import Svg, { Path, Circle, G, Text, Defs, LinearGradient, Stop } from 'react-native-svg';

      import { defaultProps } from './propTypes';

      export default class CircleSlider extends Component {
      constructor(props){
      super(props);
      console.log(props.value)
      this.state = {
      angle: props.value,
      cx: 232 / 2,
      cy: 208 / 2,
      r: this.props.dialRadius,
      };
      }

      componentWillMount() {
      this._panResponder = PanResponder.create({
      onStartShouldSetPanResponder: (e, gs) => true,
      onStartShouldSetPanResponderCapture: (e, gs) => true,
      onMoveShouldSetPanResponder: (e, gs) => true,
      onMoveShouldSetPanResponderCapture: (e, gs) => true,
      onPanResponderMove: (e, gs) => {
      const xOrigin = this.props.xCenter - (this.props.dialRadius + this.props.btnRadius);
      const yOrigin = this.props.yCenter - (this.props.dialRadius + this.props.btnRadius);
      const a = this.cartesianToPolar(gs.moveX - xOrigin, gs.moveY - yOrigin);
      this.setState({ angle: a });
      }
      });
      }

      cartesianToPolar(x, y) {
      const { dialRadius, btnRadius } = this.props;
      const hC = dialRadius + btnRadius;

      if (x === 0) {
      return y > hC ? 0 : 180;
      } else if (y === 0) {
      return x > hC ? 90 : 270;
      } else {
      return (Math.round((Math.atan((y - hC) / (x - hC))) * 180 / Math.PI) + (x > hC ? 90 : 270));
      }
      }

      polarToCartesian(centerX, centerY, radius, angleInDegrees) {
      var angleInRadians = (angleInDegrees-224) * Math.PI / 180.0;

      return {
      x: centerX + (radius * Math.cos(angleInRadians)),
      y: centerY + (radius * Math.sin(angleInRadians))
      };
      }

      describeArc(x, y, radius, startAngle, endAngle){

      var start = this.polarToCartesian(x, y, radius, endAngle);
      var end = this.polarToCartesian(x, y, radius, startAngle);

      var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";

      var d = [
      "M", start.x, start.y,
      "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y + verticalScaleToAdd
      ].join(" ");

      return d;
      }

      render() {
      const { dialWidth, dialRadius, btnRadius, xCenter, yCenter } = this.props;
      const bR = btnRadius;
      const endCoord = this.polarToCartesian(xCenter, yCenter, dialRadius, this.state.angle);
      console.log(this.state.angle)
      return (
      <Svg
      ref="circleslider"
      width="100%"
      height="100%"
      >
      <Path
      stroke="blue"
      strokeWidth={dialWidth}
      fill='none'
      d={this.describeArc(xCenter, yCenter, dialRadius, 0, 270)}
      strokeLinecap="round"
      />

      <G
      x={(endCoord.x - bR).toString()}
      y={(endCoord.y - bR) - dialWidth).toString()}
      >
      <Circle
      r={bR.toString()}
      cx={bR.toString()}
      cy={bR.toString()}
      fill={"black"}
      {...this._panResponder.panHandlers}
      />
      <Text
      x={bR.toString()}
      y={(bR-(this.props.textSize/2)).toString()}
      fontSize={this.props.textSize}
      fill={this.props.textColor}
      textAnchor="middle"
      >
      {this.props.onValueChange(this.state.angle)+''}
      </Text>
      </G>
      </Svg>
      )
      }
      }

      CircleSlider.defaultProps = defaultProps;





      import React, { Component } from 'react';
      import { PanResponder, View, Dimensions } from 'react-native';
      import Svg, { Path, Circle, G, Text, Defs, LinearGradient, Stop } from 'react-native-svg';

      import { defaultProps } from './propTypes';

      export default class CircleSlider extends Component {
      constructor(props){
      super(props);
      console.log(props.value)
      this.state = {
      angle: props.value,
      cx: 232 / 2,
      cy: 208 / 2,
      r: this.props.dialRadius,
      };
      }

      componentWillMount() {
      this._panResponder = PanResponder.create({
      onStartShouldSetPanResponder: (e, gs) => true,
      onStartShouldSetPanResponderCapture: (e, gs) => true,
      onMoveShouldSetPanResponder: (e, gs) => true,
      onMoveShouldSetPanResponderCapture: (e, gs) => true,
      onPanResponderMove: (e, gs) => {
      const xOrigin = this.props.xCenter - (this.props.dialRadius + this.props.btnRadius);
      const yOrigin = this.props.yCenter - (this.props.dialRadius + this.props.btnRadius);
      const a = this.cartesianToPolar(gs.moveX - xOrigin, gs.moveY - yOrigin);
      this.setState({ angle: a });
      }
      });
      }

      cartesianToPolar(x, y) {
      const { dialRadius, btnRadius } = this.props;
      const hC = dialRadius + btnRadius;

      if (x === 0) {
      return y > hC ? 0 : 180;
      } else if (y === 0) {
      return x > hC ? 90 : 270;
      } else {
      return (Math.round((Math.atan((y - hC) / (x - hC))) * 180 / Math.PI) + (x > hC ? 90 : 270));
      }
      }

      polarToCartesian(centerX, centerY, radius, angleInDegrees) {
      var angleInRadians = (angleInDegrees-224) * Math.PI / 180.0;

      return {
      x: centerX + (radius * Math.cos(angleInRadians)),
      y: centerY + (radius * Math.sin(angleInRadians))
      };
      }

      describeArc(x, y, radius, startAngle, endAngle){

      var start = this.polarToCartesian(x, y, radius, endAngle);
      var end = this.polarToCartesian(x, y, radius, startAngle);

      var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";

      var d = [
      "M", start.x, start.y,
      "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y + verticalScaleToAdd
      ].join(" ");

      return d;
      }

      render() {
      const { dialWidth, dialRadius, btnRadius, xCenter, yCenter } = this.props;
      const bR = btnRadius;
      const endCoord = this.polarToCartesian(xCenter, yCenter, dialRadius, this.state.angle);
      console.log(this.state.angle)
      return (
      <Svg
      ref="circleslider"
      width="100%"
      height="100%"
      >
      <Path
      stroke="blue"
      strokeWidth={dialWidth}
      fill='none'
      d={this.describeArc(xCenter, yCenter, dialRadius, 0, 270)}
      strokeLinecap="round"
      />

      <G
      x={(endCoord.x - bR).toString()}
      y={(endCoord.y - bR) - dialWidth).toString()}
      >
      <Circle
      r={bR.toString()}
      cx={bR.toString()}
      cy={bR.toString()}
      fill={"black"}
      {...this._panResponder.panHandlers}
      />
      <Text
      x={bR.toString()}
      y={(bR-(this.props.textSize/2)).toString()}
      fontSize={this.props.textSize}
      fill={this.props.textColor}
      textAnchor="middle"
      >
      {this.props.onValueChange(this.state.angle)+''}
      </Text>
      </G>
      </Svg>
      )
      }
      }

      CircleSlider.defaultProps = defaultProps;






      react-native svg react-native-svg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 12 '18 at 3:59

























      asked Nov 12 '18 at 3:52









      rn-dev

      62




      62
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255743%2fmove-a-cursor-along-an-arc-of-circle-react-native-svg%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255743%2fmove-a-cursor-along-an-arc-of-circle-react-native-svg%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Full-time equivalent

          さくらももこ

          13 indicted, 8 arrested in Calif. drug cartel investigation