telenko / react-native-paper-autocomplete

MIT License
4 stars 5 forks source link

TypeError: Cannot read property 'toUpperCase' of undefined --- when using labelExtractor with the autocomplete #1

Open codekojo opened 3 years ago

codekojo commented 3 years ago

How do I get the label from the autocomplete? For now I only get the value.

I use the labelExtractor for the autocomplete but I get "Cannot read property "toUpperCase" of undefined".

  1. labelExtractor={({ label }) => console.log('label', label)}

  2. labelExtractor={item => console.log(typeof item.label)}