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

251
Views
Cómo hacerlo, algunos elementos o encabezados no deberían mostrarse varias veces en reaccionar nativo

Tengo una tabla en el lado derecho, hay columnas en la parte superior, cada cuadro tiene un encabezado. Solo quiero eso. ese encabezado no debe repetirse. en cada caja. solo debe repetirse en la parte superior de la columna.

aquí está el código - https://snack.expo.dev/@xeteke8423/sellerformat

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede resolver eso pasando el accesorio de index a SecondaryBox y renderizando el encabezado condicionalmente.

Realice los siguientes cambios en su base de código:

Aplicación.js:

 //....... <View> {sample.map((item) => ( <View style={{ flexDirection: 'row' }}> {item['sellerId']?.map((buyer, index) => ( <SecondaryBox sellerId={buyer} index={index} /> ))} </View> ))} </View> //.......

Y en su SecondaryBox.js represente el encabezado condicionalmente como se muestra a continuación:

 //............ <ScrollView horizontal> { <View style={{ flexDirection: 'row' }}> <View style={{ marginLeft: 10 }}> {index === 0 ? ( <View style={{position: ""}}> <Text>Seller Profile</Text> <Text>View Remark</Text> <Text>Unit/Price</Text> </View> ) : ( <View style={{ height: 55 }}></View> )} //............

Aquí está la salida:

ingrese la descripción de la imagen aquí

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!