Skip to content

refactor(utils): use clamp from Reanimated - #16

Merged
matcane merged 1 commit into
mainfrom
refactor/clamp-util
Sep 19, 2026
Merged

matcane merged 1 commit into
mainfrom
refactor/clamp-util

Conversation

@matcane

@matcane matcane commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

What

Replace the local clamp helper with Reanimated's clamp

Why

Reanimated already provides a worklet-safe clamp.

Test plan

  • unit: utils.test.ts (clampInitialRatio / clampNextRatio)

@matcane matcane self-assigned this Sep 19, 2026
@matcane
matcane merged commit 5df4d2a into main Sep 19, 2026
1 check passed
@matcane
matcane deleted the refactor/clamp-util branch September 19, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant