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

155
Views
Alinear artículo a la derecha dentro del contenedor

Esta es probablemente una respuesta simple, pero todavía estoy aprendiendo js / react native y estoy un poco perdido.

¿Alguien podría explicar por qué el siguiente código no alinea a la derecha el elemento "desventaja"?

 import React from 'react'; import {View, StyleSheet } from 'react-native' import AppText from './AppText'; function ListItem({ name, uid, handicap }) { return ( <View style={styles.container}> <AppText>{uid}. </AppText> <AppText>{name}</AppText> <AppText style={{justifyContent: "flex-end"}}>{handicap}</AppText> </View> ); } const styles = StyleSheet.create({ container: { flexDirection: "row", padding: 10 }, }) export default ListItem;

quiero algo como:

  1. Nombre 5
  2. Nombre 6

pero consigue

  1. Nombre5
  2. Nombre6

Gracias

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

0

Intenta agregar flex: 1 al estilo contenedor

 ... container: { flex: 1, flexDirection: "row", padding: 10 }, ...
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!