<Dropdown
icon="arrow-down-drop-circle-outline"
iconColor="#ffffff"
label={durationLabel}
data={duration}
onChangeText={(e) => {
setData(Object.assign(data, { duration: e }));
if (e.url == "Instant") {
handleInstant();
} else if (e == "Custom") {
console.log("object", "month");
setDatePickerVisibility(true);
}
setDurationLabel("");
}}
containerStyle={{
top: 5,
width: wd * 0.9,
}}
pickerStyle={{
borderWidth: 2,
borderColor: "#222222",
backgroundColor: "#ffffff",
}}
/>
<Dropdown
icon="arrow-down-drop-circle-outline"
iconColor="#ffffff"
label={durationLabel}
data={duration}
onChangeText={(e) => {
setData(Object.assign(data, { duration: e }));
if (e.url == "Instant") {
handleInstant();
} else if (e == "Custom") {
console.log("object", "month");
setDatePickerVisibility(true);
}
setDurationLabel("");
}}
containerStyle={{
top: 5,
width: wd * 0.9,
}}
pickerStyle={{
borderWidth: 2,
borderColor: "#222222",
backgroundColor: "#ffffff",
}}
/>