Nativebase: Unable to change the font size of form input.

Created on 11 Dec 2018  路  2Comments  路  Source: GeekyAnts/NativeBase

Hey, I am trying to use Floating Label, in that i need to change the input font. Please help.
I have tried using "inputFontSize" but its not working.

Most helpful comment

@akshaykumar0291
You can try changing the font size of form input using FloatingLabel

<Form>
        <Item floatingLabel>
              <Label>Username</Label>
              <Input style={{ fontSize: 30 }} />
         </Item>
</Form>

NOTE:(Always wrap floatingLabel component with <Form/>)

All 2 comments

@akshaykumar0291
You can try changing the font size of form input using FloatingLabel

<Form>
        <Item floatingLabel>
              <Label>Username</Label>
              <Input style={{ fontSize: 30 }} />
         </Item>
</Form>

NOTE:(Always wrap floatingLabel component with <Form/>)

Thank you for the quick reply. It's working.

Was this page helpful?
0 / 5 - 0 ratings