Open aasalshehhi opened 4 years ago
Store your options in a variable then you can access it with the selected index:
const options = ['east', 'west', 'north', 'south', 'Cancel'];
const handlePress = (index) => {
console.log(index, options[index]);
};
<ActionSheet
options={options}
onPress={handlePress}
...
/>
Hi, I am using react-native-actionsheet to show dropdown in iOS, I was able to get the selected index, however, I don't know what is the syntax to get the selected value also.