MCPcopy Create free account
hub / github.com/callstack/react-native-paper / _handleLongPress

Function _handleLongPress

example/src/Examples/MenuExample.tsx:45–52  ·  view source on GitHub ↗
(event: GestureResponderEvent)

Source from the content-addressed store, hash-verified

43 const _getVisible = (name: string) => !!visible[name];
44
45 const _handleLongPress = (event: GestureResponderEvent) => {
46 const { nativeEvent } = event;
47 setContextualMenuCoor({
48 x: nativeEvent.pageX,
49 y: nativeEvent.pageY,
50 });
51 setVisible({ menu3: true });
52 };
53
54 React.useLayoutEffect(() => {
55 navigation.setOptions({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…