picker: Can't set dropdownIconColor to transparent after new release

Version : 1.13.1

Issue :

I updated the module with the latest version 1.13.1 and found a regression in the operation of dropdownIconColor. The release was supposed to fix dropdownIconColor causing a crash when using string variables. It did but it appears that it has created an another issue. You can no longer set the value of this prop to transparent using hex or rgba.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 19 (3 by maintainers)

Commits related to this issue

Most upvoted comments

Still can’t set to transparent in v2.4.8.

still exists in v2.2.0

@wave2006 I am also getting this error

If I roll back to version 1.13.0 it works fine.

Still can’t set to transparent in v2.4.8.

stumbling into this issue in v2.4.0

This code should make the dropdownIconColor transparent but it actually sets it white for every <Picker>.

return (
  <Picker dropdownIconColor={'rgba(0, 0, 0, 0)'}>
      <Picker.Item label={'JS'} value={'javascript'} />
      <Picker.Item label={'RS'} value={'rust'} />
  </Picker>
  <Picker dropdownIconColor={'#00000000'}>
       <Picker.Item label={'JS'} value={'javascript'} />
       <Picker.Item label={'RS'} value={'rust'} />
  </Picker>
  <Picker dropdownIconColor={'transparent'}>
      <Picker.Item label={'JS'} value={'javascript'} />
      <Picker.Item label={'RS'} value={'rust'} />
  </Picker>
);

This issue is still happening on the latest version (1.16.1).