Answers for "react native center content in view"

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
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 "react native center content in view"

Code answers related to "Javascript"

Browse Popular Code Answers by Language