Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Switch to withSpring to work around Reanimated regression (#4391)

authored by

dan and committed by
GitHub
48796449 1f954c10

+3 -9
+3 -9
src/state/shell/minimal-mode.tsx
··· 1 1 import React from 'react' 2 - import { 3 - Easing, 4 - SharedValue, 5 - useSharedValue, 6 - withTiming, 7 - } from 'react-native-reanimated' 2 + import {SharedValue, useSharedValue, withSpring} from 'react-native-reanimated' 8 3 9 4 type StateContext = SharedValue<number> 10 5 type SetContext = (v: boolean) => void ··· 22 17 const setMode = React.useCallback( 23 18 (v: boolean) => { 24 19 'worklet' 25 - mode.value = withTiming(v ? 1 : 0, { 26 - duration: 400, 27 - easing: Easing.bezier(0.25, 0.1, 0.25, 1), 20 + mode.value = withSpring(v ? 1 : 0, { 21 + overshootClamping: true, 28 22 }) 29 23 }, 30 24 [mode],