vertical center text react-native code example
Example 1: vertical align center react native view
container :{
justifyContent: 'center', //Centered vertically
alignItems: 'center', // Centered horizontally
flex:1
}
Example 2: react native center text vertically full screen
<View style={{
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'blue'
}}>
<Text style={{backgroundColor: 'red'}}>
Your Text
</Text>
</View>