Work around web stale closure bug in Reanimated (#1865)

This commit is contained in:
dan 2023-11-10 14:58:13 +00:00 committed by GitHub
parent 487d871cfd
commit 8d7475c130
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 7 deletions

View file

@ -4,12 +4,8 @@ import {useSetMinimalShellMode, useMinimalShellMode} from '#/state/shell'
import {useShellLayout} from '#/state/shell/shell-layout'
import {s} from 'lib/styles'
import {isWeb} from 'platform/detection'
import {
useAnimatedScrollHandler,
useSharedValue,
interpolate,
runOnJS,
} from 'react-native-reanimated'
import {useSharedValue, interpolate, runOnJS} from 'react-native-reanimated'
import {useAnimatedScrollHandler} from './useAnimatedScrollHandler_FIXED'
function clamp(num: number, min: number, max: number) {
'worklet'