We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing the Triangle example (https://github.com/mxmzb/react-native-gesture-detector/blob/master/example/src/Screen/Triangle.js) I have seen that when changing the coordinates of it to test the same example but with different coordinates, I have not managed to make it work (the capture of the gestures stops working and the progress is not displayed properly).
I attach the code of the example with my changes on the code that I made by my own ( I have only changed the y-axis coordinates )
dibujoMain.zip
The Coordinates that i used instead of the default ones.
const gestures = { Triangle: [ { x: 0, y: -200 }, { x: 10, y: -180 }, { x: 20, y: -160 }, { x: 30, y: -140 }, { x: 40, y: -120 }, { x: 50, y: -100 }, { x: 60, y: -80 }, { x: 70, y: -60 }, { x: 80, y: -40 }, { x: 60, y: -40 }, { x: 40, y: -40 }, { x: 20, y: -40 }, { x: 0, y: -40 }, { x: -20, y: -40 }, { x: -40, y: -40 }, { x: -60, y: -40 }, { x: -80, y: -40 }, { x: -70, y: -60 }, { x: -60, y: -80 }, { x: -50, y: -100 }, { x: -40, y: -120 }, { x: -30, y: -140 }, { x: -20, y: -160 }, { x: -10, y: -180 }, { x: 0, y: -200 }, ], };
.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Testing the Triangle example (https://github.com/mxmzb/react-native-gesture-detector/blob/master/example/src/Screen/Triangle.js) I have seen that when changing the coordinates of it to test the same example but with different coordinates, I have not managed to make it work (the capture of the gestures stops working and the progress is not displayed properly).
I attach the code of the example with my changes on the code that I made by my own ( I have only changed the y-axis coordinates )
dibujoMain.zip
The Coordinates that i used instead of the default ones.
const gestures = {
Triangle: [
{ x: 0, y: -200 },
{ x: 10, y: -180 },
{ x: 20, y: -160 },
{ x: 30, y: -140 },
{ x: 40, y: -120 },
{ x: 50, y: -100 },
{ x: 60, y: -80 },
{ x: 70, y: -60 },
{ x: 80, y: -40 },
{ x: 60, y: -40 },
{ x: 40, y: -40 },
{ x: 20, y: -40 },
{ x: 0, y: -40 },
{ x: -20, y: -40 },
{ x: -40, y: -40 },
{ x: -60, y: -40 },
{ x: -80, y: -40 },
{ x: -70, y: -60 },
{ x: -60, y: -80 },
{ x: -50, y: -100 },
{ x: -40, y: -120 },
{ x: -30, y: -140 },
{ x: -20, y: -160 },
{ x: -10, y: -180 },
{ x: 0, y: -200 },
],
};
.
The text was updated successfully, but these errors were encountered: