nativebase中的大写按钮 [英] Uppercase Button in nativebase

查看:24
本文介绍了nativebase中的大写按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有面子书图标的按钮

I have a button with face book icon

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

带有文本使用 Facebook 登录"但它显示使用 FACEBOOK 登录".我尝试使用大写={false} 但没有希望.有什么办法吗?NB版本:2.2.1

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

推荐答案

您正在使用 Native Base 对吗?也许你可以试试这个.

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

您可以更改此代码:

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

到这个:

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

只在你的 标签中使用 uppercase={false},希望它可以帮助你:)

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

这篇关于nativebase中的大写按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆