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

Function handlePressOut

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

Source from the content-addressed store, hash-verified

262 };
263
264 const handlePressOut = (e: GestureResponderEvent) => {
265 onPressOut?.(e);
266 if (isV3 ? isMode('elevated') : isMode('contained')) {
267 const { scale } = animation;
268 Animated.timing(elevation, {
269 toValue: initialElevation,
270 duration: 150 * scale,
271 useNativeDriver:
272 isWeb || Platform.constants.reactNativeVersion.minor <= 72,
273 }).start();
274 }
275 };
276
277 const flattenedStyles = (StyleSheet.flatten(style) || {}) as ViewStyle;
278 const [, borderRadiusStyles] = splitStyles(

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…