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

426
Views
React Native Paper text input: Why is my textInput so tall?

Im trying to add a textinput to my react native app using react-native-paper, but it keeps rendering as a very tall box instead of horizontal. What am I doing wrong?

screenshot of rendered textbox

    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

I think this is some type of bug exclusive to android, because on both web and ios it doesnt occur. A workaround would be to include a width along with your height, or to wrap the TextInput in a View (this caused weird spacing behavior) so I would just define a width:

 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!