|
|
1
4
而不是在按钮组件中使用文本组件。 使用按钮文档中定义的属性“标题”: https://facebook.github.io/react-native/docs/button.html 所以你可以
|
|
|
2
2
如果您使用的是react native default button,那么react native default button不支持样式属性,而且不支持在按钮组件中使用文本组件。使用官方文档中定义的属性“title”,请参阅下面的链接 https://facebook.github.io/react-native/docs/button.html
https://facebook.github.io/react-native/docs/handling-touches 请尝试下面的解决方案,可能对您的问题有所帮助。
|
|
|
3
1
试试看:
|
|
|
4
0
或者可以在文本中添加样式
|
|
|
5
0
|