How to create text border in React Native?

前端 未结 9 1572
清歌不尽
清歌不尽 2021-02-01 14:14

In React-Native, how do I add font borders to Text-components?

I\'ve tried using border and shadow{Color, Radius, Opacity, Offset}, but haven\'

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-01 14:21

    You need to at least set the borderWidth, it must be set to an integer. The default border color is black, you can change the color with borderColor

提交回复
热议问题