sohobloo / react-native-modal-dropdown

A react-native dropdown/picker/selector component for both Android & iOS.
MIT License
1.19k stars 478 forks source link

Selecting Specific option #176

Open rasselll opened 6 years ago

rasselll commented 6 years ago

<ModalDropdown options={['Edit', 'Delete']} onSelect={(idx, index) => this._dropdown_6_onSelect(0, "Edit")}

_dropdown_6_onSelect(idx, value) { alert("Edit"); }

Not sure how selecting a specific option is supposed to work, i tired selecting the Edit option, although the above code just makes the function alert for both options. How do i make it so the function only happens for a specific option such as "Edit"