feat: pinch-to-zoom video

This commit is contained in:
Adrian Castro
2024-02-13 20:49:43 +01:00
parent 5c5a8bf64d
commit 0a98e86de1
3 changed files with 42 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { useEffect } from "react";
import { useColorScheme } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { useFonts } from "expo-font";
import { SplashScreen, Stack } from "expo-router";
import FontAwesome from "@expo/vector-icons/FontAwesome";
@@ -57,7 +58,11 @@ export default function RootLayout() {
return null;
}
return <RootLayoutNav />;
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<RootLayoutNav />
</GestureHandlerRootView>
);
}
function RootLayoutNav() {