fix list and improve cloud functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Text, useWindowDimensions, View } from "react-native";
|
||||
import { Platform, Text, useWindowDimensions, View } from "react-native";
|
||||
import { Image } from "expo-image";
|
||||
import { BlurView } from "expo-blur";
|
||||
import { gutters, Palette } from "../../../styles";
|
||||
@@ -7,16 +7,17 @@ import { FONT_FAMILY } from "../../../styles/Fonts";
|
||||
import FontAwesome from "@expo/vector-icons/FontAwesome";
|
||||
import palette from "../../../styles/Palette";
|
||||
|
||||
export default function PersonaCard({ item, isLock = false }) {
|
||||
export default function PersonaCard({ item, isLock = false, height }) {
|
||||
const { height: windowHeight } = useWindowDimensions();
|
||||
const baseHeight = Math.max(height ?? windowHeight, 1);
|
||||
const cardHeight = Platform.OS === "web" ? Math.round(baseHeight) : baseHeight;
|
||||
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
height: windowHeight,
|
||||
marginTop: -20,
|
||||
height: cardHeight,
|
||||
}}
|
||||
>
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user