Error while updating property 'colors' of a view managed by AndroidTextInput in react-native-picker when using useNativeAndroidPickerStyle={false}
See original GitHub issueDescribe the bug
When using useNativeAndroidPickerStyle={false}
, getting error as
Error while updating property 'colors' of a view managed by AndroidTextInput in react-native-picker
on selecting a picker item.
Screenshots
Additional details
- Device: xiaomi redmi note 4
- OS: Android 6
- react-native-picker-select version: 7.0.0
- react-native version: 0.59.8
- react version: 16.8.3
Reproduction and/or code sample
<RNPickerSelect
useNativeAndroidPickerStyle={false}
onValueChange={(value) => console.log(value)}
items={[
{ label: 'Football', value: 'football' },
{ label: 'Baseball', value: 'baseball' },
{ label: 'Hockey', value: 'hockey' },
]}
/>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error while updating property color of a view managed by ...
Describe the bug If I set the prop useNativeAndroidPickerStyle={false} I get this error when selecting an option from the picker.
Read more >Error while updating property 'placeholder' of a view managed ...
The input's props placeholder receive string, just simply covert it to string. const id = this.props.id + "".
Read more >@react-native-picker/picker - npm
React Native Picker for iOS, Android, macOS, and Windows. ... Start using @react-native-picker/picker in your project by running `npm i ...
Read more >How to use react-native-picker-select - LogRocket Blog
react-native-picker -select, a powerful React Native component that gives you access to the native iOS and Android select interface.
Read more >react-native-picker-select | Yarn - Package Manager
Will attempt to locate a matching item from the items array by checking each item's value property. If found, it will update the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@akhilsanker I encountered this bug. The solution was to set a color property on the inputAndroid style object. The value of the color property can’t be an abbreviated hex code like ‘#000’, it has to be like ‘#000000’ or ‘black’.
@taekkuda I re-read my comment (from over a year ago). It looks like GitHub’s comment parser changed what I wrote in single quotes. This:
should be:
Even now I see GitHub’s comment parser has added a black circle which I am not intending.
I do not remember any more about the solution than that. Hope this helps you.