diff --git a/README.md b/README.md index 33c800c8..9e6bfc9c 100644 --- a/README.md +++ b/README.md @@ -554,6 +554,35 @@ Code explanation: ![RadialGradient](./screenShoots/radialgradient.png) +#### Touch Events + +Touch events are supported in react-native-svg. These include: + + - `disabled` + - `onPress` + - `onPressIn` + - `onPressOut` + - `onLongPress` + - `delayPressIn` + - `delayPressOut` + - `delayLongPress` + +You can use these events to provide interactivity to your react-native-svg components. + +```html + alert('Press on Circle')} +/> +``` + +![TouchEvents](./screenShoots/touchevents.gif) + +For more examples of touch in action, checkout the [TouchEvents.js examples](Example/examples/TouchEvents.js). + ### Run example: ```bash diff --git a/screenShoots/touchevents.gif b/screenShoots/touchevents.gif new file mode 100644 index 00000000..90a21636 Binary files /dev/null and b/screenShoots/touchevents.gif differ