Answers for "react center in the middle"

0

center child components in react

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

react center a text

Add textAlign: 'center' and it will center the text horizontally.

  headline: {
    textAlign: 'center', // <-- the magic
    fontWeight: 'bold',
    fontSize: 18,
    marginTop: 0,
    width: 200,
    backgroundColor: 'yellow',
  }
Posted by: Guest on July-27-2021

Code answers related to "react center in the middle"

Code answers related to "Javascript"

Browse Popular Code Answers by Language