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

Function buildSubmitEditingEvent

src/event-builder/text.ts:33–38  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

31 * - Android: `{"target": 53, "text": "Test"}`
32 */
33export function buildSubmitEditingEvent(text: string) {
34 return {
35 ...baseSyntheticEvent(),
36 nativeEvent: { text, target: 0 },
37 };
38}
39
40/**
41 * Experimental values:

Callers 2

typeFunction · 0.90
text.test.tsFile · 0.90

Calls 1

baseSyntheticEventFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…