(e: GestureResponderEvent)
| 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); |
nothing calls this directly
no test coverage detected
searching dependent graphs…