lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 499 forks source link

Mode prop is not working.(Android) #382

Closed caglardurmus closed 3 years ago

caglardurmus commented 3 years ago

Describe the bug
Mode prop is not working.

To Reproduce
Steps to reproduce the behavior:

  1. setting mode='dropdown'
  2. Clicking component
  3. It opens with 'modal'

Expected behavior
It needs open with 'dropdown'.

Screenshots
Screenshot_1603356644

Additional details

Reproduction and/or code sample

<RNPickerSelect
                    mode="dropdown"
                    onValueChange={(value) => console.log(value)}
                    items={[
                                { label: 'Football', value: 'football' },
                                { label: 'Baseball', value: 'baseball' },
                                { label: 'Hockey', value: 'hockey' },
                    ]}
                    style={{
                        inputIOS: styles.inputStyle,
                        inputAndroid: styles.inputStyle,
                        iconContainer: Platform.OS == 'ios' ? null : styles.iconContainer,
                    }}
                    Icon={() => <CustomIcon
                        name="arrow-drop-down"
                        type="MaterialIcons"
                        style={styles.dropdownIcon}
                    />}
                    doneText={'Ok'}
/>
lfkwtz commented 3 years ago

pickerProps

saravanatm commented 3 years ago

Any solution for this issue..I'm also facing the same issue