n4kz / react-native-material-dropdown

Material dropdown with consistent behaviour on iOS and Android
Other
732 stars 597 forks source link

DropDown in FlatList #275

Open gkasireddy202 opened 2 years ago

gkasireddy202 commented 2 years ago

MicrosoftTeams-image (6)

MicrosoftTeams-image (5)

I am having array like [{value:"Apple","desc":'iOS'},{value:"Google","desc":'android'}] I need to show the object of array in first row in dropdown list not remaining rows. When i select apple or google then that value is set to first row of dropdown and set second row value is empty.

this.handleDropDown(value, index)} data={[{value:"Apple","desc":'iOS'},{value:"Google","desc":'android'}]} itemColor="rgba(0, 0, 0, .87)" />

Thank you.