MCPcopy Create free account
hub / github.com/adobe/react-spectrum / addEvent

Function addEvent

packages/react-aria/test/interactions/useLongPress.test.js:53–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 it('should perform a long press', function () {
52 let events = [];
53 let addEvent = e => events.push(e);
54 let res = render(
55 <Example onLongPressStart={addEvent} onLongPressEnd={addEvent} onLongPress={addEvent} />
56 );

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected