MCPcopy
hub / github.com/callstack/react-native-paper / handlePressIn

Function handlePressIn

src/components/Button/Button.tsx:251–262  ·  view source on GitHub ↗
(e: GestureResponderEvent)

Source from the content-addressed store, hash-verified

249 }, [isElevationEntitled, elevation, initialElevation]);
250
251 const handlePressIn = (e: GestureResponderEvent) => {
252 onPressIn?.(e);
253 if (isV3 ? isMode('elevated') : isMode('contained')) {
254 const { scale } = animation;
255 Animated.timing(elevation, {
256 toValue: activeElevation,
257 duration: 200 * scale,
258 useNativeDriver:
259 isWeb || Platform.constants.reactNativeVersion.minor <= 72,
260 }).start();
261 }
262 };
263
264 const handlePressOut = (e: GestureResponderEvent) => {
265 onPressOut?.(e);

Callers

nothing calls this directly

Calls 1

isModeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…