MCPcopy
hub / github.com/callstack/react-native-testing-library / baseSyntheticEvent

Function baseSyntheticEvent

src/event-builder/base.ts:9–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7};
8
9export function baseSyntheticEvent(): BaseEvent {
10 return {
11 currentTarget: {},
12 target: {},
13 preventDefault: () => {},
14 isDefaultPrevented: () => false,
15 stopPropagation: () => {},
16 isPropagationStopped: () => false,
17 persist: () => {},
18 isPersistent: () => false,
19 timeStamp: 0,
20 };
21}

Callers 11

buildTextChangeEventFunction · 0.90
buildKeyPressEventFunction · 0.90
buildSubmitEditingEventFunction · 0.90
buildEndEditingEventFunction · 0.90
buildTouchEventFunction · 0.90
buildFocusEventFunction · 0.90
buildBlurEventFunction · 0.90
buildScrollEventFunction · 0.90
base.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…