import React from "react"; import {StatusBar} from "expo-status-bar"; import {Platform, TouchableOpacity, View} from "react-native"; import {createNativeStackNavigator} from "@react-navigation/native-stack"; import {Card, Text, useTheme} from "react-native-paper"; import {SquareAsterisk, SquarePlus} from "lucide-react-native"; import ManualCardEntry from "./ManualCardEntry"; const Stack = createNativeStackNavigator(); function CardAddModal() { return ( ) } function CardAddMethodSelector({navigation}) { const theme = useTheme(); return ( <> {Platform.OS === 'ios' && } Add new Card AMNet supports scanning physical cards, entering details manually or generating new ones. } title="Enter Details Manually" onPress={() => navigation.navigate('Manual')}/> } title="Generate New Card" onPress={() => navigation.navigate('Manual', {autoGenerate: true})}/> ) } function MethodCard(props: { title: string, description?: string, color: string, disabled?: boolean, icon: React.ReactElement, onPress: () => void }) { const theme = useTheme(); const large = props.description?.length > 0; return ( !props.disabled && props.onPress()} disabled={props.disabled}> {React.cloneElement(props.icon, {size: large ? 24 : 16, color: theme.colors.surfaceVariant})} {props.title} {props.description && ({props.description})} ) } export default CardAddModal;