MCPcopy Index your code
hub / github.com/callstack/react-native-paper / handlePress

Function handlePress

src/components/FAB/FABGroup.tsx:302–307  ·  view source on GitHub ↗
(e: GestureResponderEvent)

Source from the content-addressed store, hash-verified

300 const toggle = () => onStateChange({ open: !open });
301
302 const handlePress = (e: GestureResponderEvent) => {
303 onPress?.(e);
304 if (!toggleStackOnLongPress || open) {
305 toggle();
306 }
307 };
308
309 const handleLongPress = (e: GestureResponderEvent) => {
310 if (!open || enableLongPressWhenStackOpened) {

Callers

nothing calls this directly

Calls 2

toggleFunction · 0.85
onPressFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…