chore: remove native ios modals

This commit is contained in:
Adrian Castro
2024-03-20 14:44:41 +01:00
parent 9c232fd838
commit 262572dde3
5 changed files with 2 additions and 22 deletions

View File

@@ -55,7 +55,6 @@
"react-native-change-icon": "^5.0.0",
"react-native-context-menu-view": "^1.14.1",
"react-native-gesture-handler": "~2.14.1",
"react-native-ios-modal": "^0.1.8",
"react-native-modal": "^13.0.1",
"react-native-quick-base64": "^2.0.8",
"react-native-quick-crypto": "^0.6.1",

View File

@@ -76,7 +76,6 @@ export function ThemeSelector(props: SelectProps) {
<Adapt platform="native">
<Sheet
native
modal
dismissOnSnapToBottom
dismissOnOverlayPress

View File

@@ -1,13 +1,10 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { useEffect } from "react";
import { GestureHandlerRootView } from "react-native-gesture-handler";
// @ts-expect-error - No exported types
import { ModalView } from "react-native-ios-modal";
import { useFonts } from "expo-font";
import { SplashScreen, Stack } from "expo-router";
import FontAwesome from "@expo/vector-icons/FontAwesome";
import { DarkTheme, ThemeProvider } from "@react-navigation/native";
import { setupNativeSheet } from "@tamagui/sheet";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { TamaguiProvider, Theme, useTheme } from "tamagui";
import tamaguiConfig from "tamagui.config";
@@ -21,8 +18,6 @@ export {
ErrorBoundary,
} from "expo-router";
setupNativeSheet("ios", ModalView);
export const unstable_settings = {
// Ensure that reloading on `/modal` keeps a back button present.
initialRouteName: "(tabs)",

View File

@@ -19,7 +19,7 @@ const PlayerText = styled(Text, {
function SettingsSheet(props: SheetProps) {
return (
<Sheet
snapPoints={[90]}
snapPoints={[80]}
dismissOnSnapToBottom
modal
animation="spring"
@@ -54,7 +54,7 @@ function SettingsSheetFrame({
}) {
return (
<SafeAreaProvider>
<SafeAreaView style={{ flex: 1 }}>
<SafeAreaView style={{ flex: 1, backgroundColor: "black" }}>
<Sheet.Frame
backgroundColor="$playerSettingsBackground"
padding="$5"

13
pnpm-lock.yaml generated
View File

@@ -137,9 +137,6 @@ importers:
react-native-gesture-handler:
specifier: ~2.14.1
version: 2.14.1(react-native@0.73.5)(react@18.2.0)
react-native-ios-modal:
specifier: ^0.1.8
version: 0.1.8(react-native@0.73.5)(react@18.2.0)
react-native-modal:
specifier: ^13.0.1
version: 13.0.1(react-native@0.73.5)(react@18.2.0)
@@ -11376,16 +11373,6 @@ packages:
react-native: 0.73.5(@babel/core@7.23.9)(@babel/preset-env@7.23.9)(react@18.2.0)
dev: false
/react-native-ios-modal@0.1.8(react-native@0.73.5)(react@18.2.0):
resolution: {integrity: sha512-kA068hIhI9+r21OnRXzkRevGjGYTVAYf5kzsIFI15IrCiAkR40dE2lqJtOpnrB3lZ9KZeS0ph59qNNpDSG7xpA==}
peerDependencies:
react: '*'
react-native: '*'
dependencies:
react: 18.2.0
react-native: 0.73.5(@babel/core@7.23.9)(@babel/preset-env@7.23.9)(react@18.2.0)
dev: false
/react-native-modal@13.0.1(react-native@0.73.5)(react@18.2.0):
resolution: {integrity: sha512-UB+mjmUtf+miaG/sDhOikRfBOv0gJdBU2ZE1HtFWp6UixW9jCk/bhGdHUgmZljbPpp0RaO/6YiMmQSSK3kkMaw==}
peerDependencies: