about summary refs log tree commit diff
path: root/src/state/shell
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-26 23:56:57 +0000
committerGitHub <noreply@github.com>2024-11-26 23:56:57 +0000
commit2c2d12b3949dfbb26e8fadecfe9dfecfe3f6962d (patch)
treeb8d4ad6ebdf1f1c421f15eccec87189966c37838 /src/state/shell
parent736ea3f49d3500af1d41bb6ae54862acea40d056 (diff)
downloadvoidsky-2c2d12b3949dfbb26e8fadecfe9dfecfe3f6962d.tar.zst
Fix stutter when swiping feeds on Android (#6765)
Diffstat (limited to 'src/state/shell')
-rw-r--r--src/state/shell/minimal-mode.tsx10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/state/shell/minimal-mode.tsx b/src/state/shell/minimal-mode.tsx
index 00547ee3e..eba3aa2b0 100644
--- a/src/state/shell/minimal-mode.tsx
+++ b/src/state/shell/minimal-mode.tsx
@@ -1,10 +1,5 @@
 import React from 'react'
-import {
-  cancelAnimation,
-  SharedValue,
-  useSharedValue,
-  withSpring,
-} from 'react-native-reanimated'
+import {SharedValue, useSharedValue, withSpring} from 'react-native-reanimated'
 
 type StateContext = {
   headerMode: SharedValue<number>
@@ -42,14 +37,11 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
   const setMode = React.useCallback(
     (v: boolean) => {
       'worklet'
-      // Cancel any existing animation
-      cancelAnimation(headerMode)
       headerMode.set(() =>
         withSpring(v ? 1 : 0, {
           overshootClamping: true,
         }),
       )
-      cancelAnimation(footerMode)
       footerMode.set(() =>
         withSpring(v ? 1 : 0, {
           overshootClamping: true,