0
我一直在为我的React Native项目使用NativeBase。如何在NativeBase中定制Button组件的边框大小?
我可以使用内联样式来增加<Button />
组件的边框尺寸。有没有什么方法可以设置从NativeBase中使用的所有按钮的样式?
我一直在为我的React Native项目使用NativeBase。如何在NativeBase中定制Button组件的边框大小?
我可以使用内联样式来增加<Button />
组件的边框尺寸。有没有什么方法可以设置从NativeBase中使用的所有按钮的样式?
如果你看一下这个文件https://github.com/GeekyAnts/NativeBase/blob/master/Components/Widgets/Button.js
的TouchableHighlight组件的样式使用方法prepareRootProps
其中有borderWidth: (this.props.bordered) ? 1 : 0,
所以,如果你没有<Button bordered=true />
设置。它会将borderWidth设置为1.但是它似乎不允许定义您自己的宽度。