Answers for "how to center in react netive"

CSS
1

center element react native

var styles = StyleSheet.create({
    content:{
        flex:1,
        flexDirection:'row',
        alignItems:'center',
        justifyContent:'center'
    },
   …
});
Posted by: Guest on September-03-2020
1

centering items in react css

div.container4 {
    height: 10em;
    position: relative }
div.container4 p {
    margin: 0;
    background: yellow;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) }
Posted by: Guest on April-19-2021

Code answers related to "how to center in react netive"

Browse Popular Code Answers by Language