UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

9 lines (8 loc) • 166 B
export const clamp = ( value: number, lowerBound: number, upperBound: number ) => { 'worklet'; return Math.min(Math.max(lowerBound, value), upperBound); };