import React from "react"; import { View, TextInput, StyleSheet } from "react-native"; import { MaterialCommunityIcons } from "@expo/vector-icons"; import colors from "../config/colors"; import defaultStyles from "../config/styles"; import { Shadow } from "react-native-shadow-2"; function AppTextInput({ icon, width = "100%", ...otherProps }) { return ( {icon && ( )} ); } const styles = StyleSheet.create({ container: { backgroundColor: colors.white, borderRadius: 6, borderColor: colors.grayBG, borderWidth: 1, padding: 5, paddingLeft: 12, }, icon: { marginRight: 10, }, }); export default AppTextInput;