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

427
Views
Entrada de texto de React Native Paper: ¿Por qué mi entrada de texto es tan alta?

Estoy tratando de agregar una entrada de texto a mi aplicación nativa de reacción usando papel nativo de reacción, pero sigue mostrándose como un cuadro muy alto en lugar de horizontal. ¿Qué estoy haciendo mal?

captura de pantalla del cuadro de texto renderizado

 import { StyleSheet, Text, View } from "react-native"; import { TextInput } from "react-native-paper"; import { useState } from "react"; export default function SignUp() { return ( <View style={styles.container}> <Text>SIGN UP! NOW~~!!</Text> <TextInput mode="outlined" style={styles.inp} /> </View> ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: "center", justifyContent: "center", }, inp: { height: 1, }, });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Creo que este es un tipo de error exclusivo de Android, porque tanto en la web como en iOS no ocurre. Una solución alternativa sería incluir un ancho junto con su altura, o envolver TextInput en una Vista (esto provocó un comportamiento de espaciado extraño), por lo que simplemente definiría un ancho:

 const styles = StyleSheet.create({ inp: { height: 1, width:'100%' }, });
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!