import React, { useState } from 'react'; import { Text, View, TextInput, TouchableOpacity, ScrollView, KeyboardAvoidingView, Platform, Alert, } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { getStyles } from './addLead.styles'; import { useTheme } from '../../theme'; export const AddLeadScreen = () => { const { theme: colors } = useTheme(); const styles = getStyles(colors); const [name, setName] = useState(''); const [company, setCompany] = useState(''); const [email, setEmail] = useState(''); const [phone, setPhone] = useState(''); const [value, setValue] = useState(''); const handleSubmit = () => { if (!name.trim() || !company.trim() || !email.trim()) { Alert.alert('Error', 'Please fill in Name, Company, and Email fields.'); return; } Alert.alert( 'Success', `Lead "${name}" for "${company}" has been created!`, [ { text: 'OK', onPress: () => { setName(''); setCompany(''); setEmail(''); setPhone(''); setValue(''); }, }, ], ); }; return ( Lead Information {/* Name Field */} Lead Name * {/* Company Field */} Company * {/* Email Field */} Email Address * {/* Phone Field */} Phone Number {/* Deal Value Field */} Estimated Value ($) Create New Lead ); };