Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native margin

//the four margin directions
marginTop: 10
marginBottom : 11
marginLeft: 6
marginRight: 8

marginVertical: 10 //same as setting both marginTop and marginBottom
marginHorizontal: 7 //same as setting both marginLeft and marginRight

//sets the four directions at once
margin: 10
margin: '10%'
Source by reactnative.dev #
 
PREVIOUS NEXT
Tagged: #react #native #margin
ADD COMMENT
Topic
Name
3+4 =