Undefined is not an object (evaluating '_ref3.label')
See original GitHub issueThis error appears when I fill in a text field (not even selecting an option).
<DropDownPicker
items={[
{
label: 'Cm',
value: 'cm',
},
{
label: 'Mm',
value: 'mm',
},
]}
defaultValue={sizeUnit}
containerStyle={styles.selectContainer}
style={styles.select}
itemStyle={{
justifyContent: 'flex-start',
}}
dropDownStyle={styles.selectDropdown}
onChangeItem={(item) => setRoom({sizeUnit: item.value})}
/>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (3 by maintainers)
Top Results From Across the Web
javascript - undefined is not an object(evaluating 'choice.label')
The choice.label error is a good hint that something is wrong with a label property being passed to DropDownPicker .
Read more >receiving [TypeError: undefined is not an object (evaluating ...
I have a user input screen (AddTrack.js), in which I'm using the useState hook to capture input values. Have been trying to use...
Read more >Undefined is not an object (evaluating 'f.postcount')
Hi,. I'm writing you because I have a page where I use the Ajax Load More plugin and I don't know if it's...
Read more >ERROR TypeError: undefined is not an object (evaluating ...
ERROR TypeError: undefined is not an object (evaluating '_this.props.navigation.navigate') | How To Make Searchbar Flatlist Clickable & Navigate To Detail ...
Read more >[Solved]-TypeError: undefined is not an object (evaluating '_ref ...
Coding example for the question TypeError: undefined is not an object (evaluating '_ref.navigation')-React Native.
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 Free
Top 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

Hello, in
defaultValue={sizeUnit}the sizeUnit is undefined or its value doesnt exist in the items. Make sure the variable is valid.@feraraujofilho Try
const [country, setCountry] = useState('uk');& …