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\'
I needed to add a bottom border to Text
component like this:
I did the following:
the border is a
inside another one with flexDirection : 'row'
here is my code:
Horaire de prière
and the style:
titleContainer: {
flex: 0.2,
alignItems:'center',
justifyContent:'center'
},
title: {
fontSize: 18,
marginBottom:2,
},
borderContainer:{
flexDirection:'row',
alignItems:'center',
justifyContent:'center',
},
border:{
flex:0.28,
borderBottomWidth: 1,
borderBottomColor: '#428947',
},
you can modify border size with flex.