hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
992 stars 296 forks source link

change Arrow up and down Icon #569

Open taatiq882 opened 2 years ago

taatiq882 commented 2 years ago

I want to change the arrow-up arrow-down icon to react-native-vector-icons. Can anyone help me in this regard?

kim-jiha95 commented 2 years ago
const [open, setOpen] = useState(false);
    <DropDownPicker>
   {open ? <Image // your image path// source={upArrow} style={{ borderWidth: 10, width: 12, height: 12, marginLeft: 10, marginBottom: 8, position: "absolute" }} /> : <Image source={Arrow} style={{ width: 12, height: 12, marginLeft: 10, marginBottom: 8 }} />}
<DropDownPicker/>
kim-jiha95 commented 2 years ago

use like this @taatiq882