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

274
Views
¿Cómo puedo activar cuando se presiona un botón específico en react-native-picker-select?

Estoy usando react-native-picker-select. Cuando hay datos llamados ingre, quiero que ingrebool sea falso cuando se presiona a,b,c,d y verdadero cuando se presiona e. ¿Qué tengo que hacer?

este es mi codigo

 export const ingre = [ { label: 'a', value: 'Tangerinefeed' }, { label: 'b', value: 'dryexamfeed' }, { label: 'c', value: 'wetfeed' }, { label: 'd', value: 'sawdust' }, { label: 'e', value: 'etc' }, ]; export const ArrowIconPickerObj = ({ingre }) => { const [ingrebool, setIngrebool] = useState(false) return ( <RNPickerSelect items={ingre} /> ) }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Ya lo averiguó usted mismo: configure ingrebool para que sea falso cuando se presiona a, b, c, d y para que sea verdadero cuando se presiona e.

 <RNPickerSelect items={ingre} onValueChange={value => setIngrebool(value === "etc")} />
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!