Answers for "align text into center of container react native"

7

android center text react native

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

align text center react native

<View style={{flex: 1,textAlign: 'center',alignItems: 'center', textAlignVertical: 'center' }}>
Posted by: Guest on December-24-2020
0

align text into center of container react native

const styles = StyleSheet.create({
  //Container or View that wraps text
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center'
  },
  text: {
    textAlign: "center",
  },
Posted by: Guest on October-15-2021

Code answers related to "align text into center of container react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language