import React from "react"; import { View, TextInput, StyleSheet } from "react-native"; import { MaterialCommunityIcons } from "@expo/vector-icons"; import defaultStyles from "../config/styles"; function AppTextInput({ icon, width = "100%", ...otherProps }) { return ( {icon && ( )} ); } const styles = StyleSheet.create({ container: { backgroundColor: defaultStyles.colors.light, borderRadius: 25, flexDirection: "row", padding: 15, marginVertical: 10, }, icon: { marginRight: 10, }, }); export default AppTextInput;