Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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",
  },
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #align #text #center #container #react #native
ADD COMMENT
Topic
Name
3+9 =