I have tried everything but cannot resolve this error. Please Help to replace this box instead of icon
import { Icon } from 'react-native-elements'
<Icon name="glass" ></Icon>
You could try like this:
import FontAwesome from "react-native-vector-icons/FontAwesome";
...
<FontAwesome
name={"glass"}
size={30}
color="#000000"
/>