You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the square container SVG with 4 smaller squares inside. I need indicate which small square is swiped over and color it for example.
Now onPressIn works only ones and is not triggered when swipe on another square. It is triggered again when finger is back on that one square.
Is it possible to achieve?
The text was updated successfully, but these errors were encountered:
react-native-svg supports only basic gestures. For more advanced ones like swipe, pinch, or fling, I recommend using the react-native-gesture-handler library. You can find more details in its documentation: https://docs.swmansion.com/react-native-gesture-handler/
Feel free to reach out if you have any questions about integrating these two libraries. I'll try to help!
Simplified code:
const onPointSwipe = (i: number) => {
console.log("i", i);
};
This is the square container SVG with 4 smaller squares inside. I need indicate which small square is swiped over and color it for example.
Now onPressIn works only ones and is not triggered when swipe on another square. It is triggered again when finger is back on that one square.
Is it possible to achieve?
The text was updated successfully, but these errors were encountered: