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.
showActionSheet = () => {
this.ActionSheet.show()
}
handlePress = (buttonIndex, option) => {
this.setState({ selected: buttonIndex, Region: options})
}
<Text style={styles.inputfields} onPress={this.showActionSheet}>Region</Text>
<ActionSheet
ref={o => this.ActionSheet = o}
title={'Region'}
options={['North', 'South', 'East', 'West', 'Cancel']}
cancelButtonIndex={5}
selectedValue={this.state.Region}
value={this.state.Region}
onPress={this.handlePress}
/>