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

267
Views
¿Cómo puedo cambiar a la alineación horizontal cuando uso el mapa en React native?

Tengo datos llamados hola.

Si tengo datos de hello[0], quiero ejecutar hello.map y enumerar los botones. Sin embargo, el componente Pressable está alineado verticalmente, pero quiero hacerlo horizontalmente.

Entonces, estoy tratando de cambiar la dirección dando una vista en la parte superior de la función de mapa. Si coloco una vista, se produce un error de token inesperado.

¿Cómo arreglo mi código?

 hello = [ { originName: "growthLength 1"}, { originName: "growthLength 2"}, ] { hello[0] ? ( <View style={{flexDirection:'row'}}> // << here hello.map((v) => { return( <> <Pressable> <Image /> </Pressable> </> ) }) </View> ) : (null) }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cambia tu código así

 {hello[0] ? ( <View style={{ flexDirection: 'row' }}> {hello.map((v) => { return ( <> <Pressable> <Image /> </Pressable> </> ); })} </View> ) : null}
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!