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

774
Views
¿Cómo alinear la entrada de texto correctamente en reaccionar nativo?

La entrada de texto está alineada al centro, cómo corregir esta entrada de texto para que tome la entrada de la esquina superior izquierda

La entrada de texto está alineada al centro, cómo corregir esta entrada de texto para que tome la entrada de la esquina superior izquierda

Aquí está mi css para la entrada de texto:

 /* The Text input is center aligned, how to fix this text input so that it takes input from top left corner */ input: { flex: 1, padding: 4, marginRight: 1, marginTop: 5, fontSize: 18, borderWidth: 1, borderRadius: 4, borderColor: '#E6E5ED', backgroundColor: '#F8F8F9', justifyContent: 'flex-start', height: 150 }
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Tuve el mismo problema, pero las notas anteriores no lo resolvieron. Hay una propiedad de estilo textAlignVertical solo para Android que soluciona este problema en las entradas de varias líneas.

es decir textAlignVertical: 'top'

over 4 years ago · Santiago Trujillo Report

0

TextInput tiene relleno predeterminado, anúlelo configurando:

 paddingTop: 0, paddingBottom: 0

Problema de Github

over 4 years ago · Santiago Trujillo Report

0

He encontrado la solución que en Android, TextInput style textAlignVertical: 'top' funciona. pero en ios, TextInput prop multiline={true} funciona.

over 4 years ago · Santiago Trujillo 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!