(props)
| 17 | import {usePress} from '../../src/interactions/usePress'; |
| 18 | |
| 19 | function Example(props) { |
| 20 | let {elementType: ElementType = 'div', ...otherProps} = props; |
| 21 | let {longPressProps} = useLongPress(otherProps); |
| 22 | return ( |
| 23 | <ElementType {...longPressProps} tabIndex="0"> |
| 24 | test |
| 25 | </ElementType> |
| 26 | ); |
| 27 | } |
| 28 | |
| 29 | function ExampleWithPress(props) { |
| 30 | let {elementType: ElementType = 'div', onPress, onPressStart, onPressEnd, ...otherProps} = props; |
nothing calls this directly
no test coverage detected