Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uppercase Button in nativebase

I have a button with face book icon

<Button iconLeft block > <Icon name='logo-facebook' /> <Text>Login with facebook</Text> </Button>

with text "Login with facebook" But it displays "LOGIN WITH FACEBOOK" .I am tried with capitalize={false} but no hope.Is there any way? NB version:2.2.1

like image 510
anoop m m Avatar asked Apr 09 '26 10:04

anoop m m


1 Answers

you are using Native Base Right ? maybe you can try this one.

you can change this code:

<Button iconLeft block > 
 <Icon name='logo-facebook' /> 
 <Text> {'Login with facebook'.toUpperCase()} </Text>
</Button>

to this :

<Button iconLeft block > 
 <Icon name='logo-facebook' /> 
 <Text uppercase={false}> {'Login with facebook'.toUpperCase()} </Text>
</Button>

just only using uppercase={false} in your <text> tag, hope it can help you :)

like image 124
Rizal Sidik Avatar answered Apr 12 '26 00:04

Rizal Sidik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!