import React from "react"; import { View, Text, TouchableOpacity, TextInput, StyleSheet, } from "react-native"; import { globalStyles } from "../styles/global"; import { useTheme } from "@Styles"; const InputField = ({ label, icon, inputType, keyboardType, filedButtonLabel, fieldButtonFunction, onChangeText, text, name, handleBlur, }) => { const { colors } = useTheme(); return ( {icon} {inputType === "password" ? ( ) : ( )} {filedButtonLabel} ); }; const styles = StyleSheet.create({ textField: { flexDirection: "row", borderBottomColor: "#ccc", borderBottomWidth: 1, paddingBottom: 8, marginBottom: 25, }, textInput: { flex: 1, paddingVertical: 0, fontFamily: "poppins-regular", }, }); export default InputField;