Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to set an item to have position absolute center with React Native?

<View
  style={{
    position: "absolute",
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
    justifyContent: "center",
    alignItems: "center",
  }}
>
  <Text>text here ...</Text>
</View>
Source by thewebdev.info #
 
PREVIOUS NEXT
Tagged: #How #set #item #position #absolute #center #React
ADD COMMENT
Topic
Name
9+4 =