Home > Blockchain >  Can my symbol be exactly at the middle of mu button?
Can my symbol be exactly at the middle of mu button?

Time:05-14

I have my " " that is a little bellow the center in my button. How can he be right in the center? Here is my code: Code

CodePudding user response:

  1. Wrapper TouchableOpacity - should be justifyContent: "center"
  2. For Text need to set fontFamily. Or set lineHeight and justifyContent

CodePudding user response:

If you want to display a div or container inside of another first use display flex than justify content, align-items and make sure padding is set to 0 or to a value than you want

  • Related