we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "line separator with text in the center react native"
Simon
07 Jan 2019
1<View style={{flexDirection: 'row'}}>
2    <View style={{backgroundColor: 'black', height: 2, flex: 1, alignSelf: 'center'}} />
3    <Text style={{ alignSelf:'center', paddingHorizontal:5, fontSize: 24 }}>Your class</Text>
4    <View style={{backgroundColor: 'black', height: 2, flex: 1, alignSelf: 'center'}} />
5</View>
6