Getting this error when importing:
import DropDownPicker from 'react-native-dropdown-picker';
import DateTimePicker from '@react-native-community/datetimepicker';
<DropDownPicker
zIndex={5000}
onOpen={() => setIsVisible(false)}
onClose={() => setIsVisible(true)}
placeholder="Choose A Location"
items={locations}
arrowColor='deepskyblue'
containerStyle={{ height: 50, marginTop: 6, marginBottom: 14 }}
style={{ backgroundColor: 'white' }}
itemStyle={{ justifyContent: 'flex-start' }}
dropDownStyle={{ backgroundColor: 'white' }}
onChangeItem={item => setLocation(item.label)}
/>
<DateTimePicker
format="DD-MM-YYYY"
value={new Date(date)}
mode="date"
display="spinner"
onChange={onChange}
/>
I am not sure why I am getting this error and how to fix it, can someone please help me.
This might be a library conflict, you might be importing 2 same library.