item container

This commit is contained in:
2025-11-03 09:59:41 +01:00
parent 0dd0fa5ab7
commit ab5aa1fd1a
3 changed files with 21 additions and 23 deletions
+16 -18
View File
@@ -1,6 +1,6 @@
import { Portal } from "@gorhom/portal";
import { BlurView } from "expo-blur";
import React, { useCallback } from "react";
import { useCallback } from "react";
import { Platform, Pressable, StyleSheet, View } from "react-native";
import ActionSheet, { SheetManager } from "react-native-actions-sheet";
import { useSafeAreaInsets } from "react-native-safe-area-context";
@@ -49,10 +49,7 @@ const AppActionSheet = ({
return (
<ActionSheet
id={id}
containerStyle={[
{ backgroundColor: Palette.tran },
isWeb && { alignItems: "center" },
]}
containerStyle={{ backgroundColor: Palette.tran }}
gestureEnabled
indicatorStyle={{
top: 20,
@@ -64,18 +61,18 @@ const AppActionSheet = ({
>
<BlurView
intensity={Platform.OS === "ios" || isWeb ? 20 : 10}
style={[
{
paddingTop: 36,
paddingHorizontal: 14,
paddingBottom: gutters + (insets?.bottom || 0),
backgroundColor: Palette.glass,
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
overflow: "hidden",
},
isWeb && { width: 700 },
]}
style={{
paddingTop: 36,
paddingHorizontal: 14,
paddingBottom: gutters + (insets?.bottom || 0),
backgroundColor: Palette.glass,
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
overflow: "hidden",
}}
// experimentalBlurMethod={
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
// }
>
{children}
</BlurView>
@@ -102,7 +99,8 @@ const styles = StyleSheet.create({
padding: 24,
},
webModalCard: {
maxWidth: 500,
width: 480,
maxWidth: "90%",
borderRadius: 28,
overflow: "hidden",
backgroundColor: Palette.glass,
+1 -1
View File
@@ -1,6 +1,6 @@
import { AnimatePresence, Motion } from "@legendapp/motion";
import { useKeyboard } from "@react-native-community/hooks";
import React, { useCallback, useEffect, useState } from "react";
import { useCallback, useEffect, useState } from "react";
import { Keyboard, StyleSheet } from "react-native";
import BottomSheet from "./BottomSheet";