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

110
Views
Este es un proyecto nativo de reacción. Mi compilador encuentra que la variable del elemento no está definida a pesar de que usé el elemento en una función

Estoy tratando de arreglar mis rutas en reaccionar nativo, para hacerlo, estoy usando la variable del elemento para navegar por mis páginas.

 <TouchableOpacity style={{ padding: 20, flexDirection: "row", backgroundColor: colors.background, justifyContent: "flex-end", alignItems: "center", }} onPress={navigation.navigate("Edit", { id: item.id })} > <Text style={{ fontSize: 24 }}>Task</Text> <MaterialCommunityIcons name="plus" size={40} style={{ color: colors.themeColor, backgroundColor: colors.white, borderRadius: 20, marginHorizontal: 8, }} /> </TouchableOpacity>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Primero use {() => navigation.navigate ("Editar", { id: item.id })}. Si no está usando variables de elementos en su código, le dará indefinido. por ejemplo, si su variable de identificación es una persona, intente usar person.id. En la página siguiente, use route.params.person.

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!