React-native-picker-select: onClose and onOpen events are not firing when trying to open dropdown

Created on 23 Jan 2019  路  2Comments  路  Source: lawnstarter/react-native-picker-select

Here is my dropdown related code. Not able to see console messages.

hideDoneBar={false}
placeholder={{ label: 'All', value: 'All' }}
placeholderTextColor={'black'}
items={this.state.List}
onValueChange={(value) => {
    this.setState({
        selectedOption: value,
    });
}}
style={{
    ...pickerSelectStyles,
    inputIOS: {
        ...pickerSelectStyles.inputIOS,
        height: 40
    }
}}
onOpen={() => console.log('open dropdown')}
onClose={() => console.log('open dropdown')}
value={this.state.selectedOption}
ref={(el) => {
    this.inputRefs.picker2 = el;
}}

/>

All 2 comments

You need to fill out the entire bug report. Just like it says on it.

If you are using android. Try set useNativeAndroidPickerStyle={false}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fleuv picture Fleuv  路  8Comments

Friendly-Robot picture Friendly-Robot  路  5Comments

marcoizzo picture marcoizzo  路  4Comments

gregogalante picture gregogalante  路  4Comments

jenniferburch picture jenniferburch  路  4Comments