-
Notifications
You must be signed in to change notification settings - Fork 4
Description
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 )
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 },
],
};
.