0

I am using Native Base Component Input to create the TextInput, but the lineheight for display is broken and cannot show the complete word. The padding, margin, border, lineheight is not working in here.

Any people have this solution? Thank You!

Remark: only happen in android

enter image description here

        <Text style={styles.inputHeader}>My Name</Text>
        <Item regular>
          <Input style={{height:35,marginBottom:0 }} />
        </Item>
Yuk_dev
  • 318
  • 1
  • 6
  • 16

3 Answers3

1

I recommend wrapping it inside the Form tag in your parent container or your wrapper, for inheriting the styles assigned to it in your Item

<Form>
    <Label>My Name</Label>
    <Item regular>
        <Input style={{ height: 35, marginBottom: 0 }} />
    </Item>
</Form>
Pritish Vaidya
  • 21,561
  • 3
  • 58
  • 76
0

give padding to input

{padding:2}
Bhargav Sejpal
  • 1,352
  • 16
  • 23
0

No need of embedding inline styles

This is fixed with NativeBase

Try updating NativeBase in your project, and make sure you eject theme to find the fix

Supriya Kalghatgi
  • 1,155
  • 9
  • 10