This commit is contained in:
Maxym Hyba
2025-10-29 17:46:21 +02:00
committed by GitHub
parent f15a949ef8
commit faa389e060
2 changed files with 7 additions and 11 deletions
@@ -6,6 +6,7 @@ import {
type NativeGesture,
} from 'react-native-gesture-handler'
import Animated, {
clamp,
interpolate,
runOnJS,
runOnUI,
@@ -258,8 +259,3 @@ function PlayerListener({
return null
}
function clamp(num: number, min: number, max: number) {
'worklet'
return Math.min(Math.max(num, min), max)
}