Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
Menú desplegable de búsqueda con datos asíncronos en reaccionar nativo

Estoy tratando de usar un menú desplegable de búsqueda en la exposición con almacenamiento asíncrono, pero cuando intento escribir un texto, aparece "undefined no es un objeto (evaluando 'item.name.toLowerCase')". Necesito ayuda por favor, se los agradecería mucho.

Además, el menú desplegable permanece en blanco, pero cuando hago clic en él, alerta los datos. No sé que más hacer.

 try { const keys = await AsyncStorage.getAllKeys(); const items = await AsyncStorage.multiGet(keys); setItem(items); } catch (error) { alert(error); } };
 <SearchableDropdown onTextChange={(text) => console.log(text)} //On text change listner on the searchable input onItemSelect={(item) => alert(JSON.stringify(item))} //onItemSelect called after the selection from the dropdown containerStyle={{ padding: 5 }} //suggestion container style textInputStyle={{ //inserted text style padding: 12, borderWidth: 1, borderColor: "#ccc", backgroundColor: "#FAF7F6", }} itemStyle={{ //single dropdown item style padding: 10, marginTop: 2, backgroundColor: "#FAF9F8", borderColor: "#bbb", borderWidth: 1, }} itemTextStyle={{ //text style of a single dropdown item color: "#222", }} itemsContainerStyle={{ //items container style you can pass maxHeight //to restrict the items dropdown hieght maxHeight: "60%", }} items={item} //mapping of item array defaultIndex={2} //default selected item index placeholder="placeholder" //place holder for the search input resetValue={false} //reset textInput Value with true and false state underlineColorAndroid="transparent" //To remove the underline from the android input />```
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

En caso de que esté utilizando https://www.npmjs.com/package/react-native-searchable-dropdown , refactorice esta línea

 <SearchableDropdown // You wrote item instead items items={items} the underline from the android input />
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!