简体   繁体   English

如何删除React Native Android Button的样式

[英]How to remove styling of React Native Android Button

Is there a way to remove the styling from a React Native Android Button component? 有没有办法从React Native Android Button组件中删除样式? I'd like to remove / overwrite the: 我想删除/覆盖以下内容:

  • Border Radius 边界半径
  • Drop Shadow 落影
  • The 'circle radiating outwards' effect when clicked on. 单击时具有“向外辐射的圆”效果。

The Button Component accepts no style props, so you are unable to style it. 按钮组件不接受任何样式道具,因此您无法为其设置样式。 You could create your own version of the button with any of the Touchables components like TouchableHighlight , or use an external module like react-native-button 您可以使用任何Touchables组件(如TouchableHighlight)创建自己的按钮版本,或使用外部模块(如react-native-button)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM