react native center align code example
Example 1: center element react native
var styles = StyleSheet.create({
content:{
flex:1,
flexDirection:'row',
alignItems:'center',
justifyContent:'center'
},
…
});
Example 2: align text center react native
<View style={{flex: 1,textAlign: 'center',alignItems: 'center', textAlignVertical: 'center' }}>