Text align react native code example
Example 1: android center text react native
headline: {
textAlign: 'center', // <-- the magic
fontWeight: 'bold',
fontSize: 18,
marginTop: 0,
width: 200,
backgroundColor: 'yellow',
}
Example 2: react native text right align
textAlign:'right'
Example 3: align text center react native
<View style={{flex: 1,textAlign: 'center',alignItems: 'center', textAlignVertical: 'center' }}>