Answers for "vertical center text react-native"

1

vertical align center react native view

container :{
   justifyContent: 'center', //Centered vertically
   alignItems: 'center', // Centered horizontally
   flex:1
}
Posted by: Guest on February-11-2021
0

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>
Posted by: Guest on May-03-2020

Code answers related to "vertical center text react-native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language