fix: rewrite SlideToConfirm with Reanimated only (no RNGH); remove GestureHandlerRootView

This commit is contained in:
Nemo
2026-03-24 14:15:02 +08:00
parent e99c057325
commit 6d3729406b
2 changed files with 107 additions and 99 deletions

View File

@@ -2,7 +2,6 @@ import '../global.css';
import { useEffect } from 'react';
import { Stack, router } from 'expo-router';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { useAuthStore } from '../stores/authStore';
const queryClient = new QueryClient();
@@ -25,10 +24,8 @@ export default function RootLayout() {
}, [isLoading, token]);
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<QueryClientProvider client={queryClient}>
<Stack screenOptions={{ headerShown: false }} />
</QueryClientProvider>
</GestureHandlerRootView>
<QueryClientProvider client={queryClient}>
<Stack screenOptions={{ headerShown: false }} />
</QueryClientProvider>
);
}