List of StyleSheet Properties and Parameters

I searched the Internet for a list of all the possible customizable StyleSheet parameters and their values. Can you find a link to such documentation?

+4
source share
2 answers

Here they are divided by component type:

View

Image

Text

Flexbox

Transform

If you see an enumeration in the documentation, for example, on the text style documentation page:

fontStyle enum('normal', 'italic')
fontWeight enum("normal", 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900')

They usually resemble the css properties you find on the Internet.

+5
source

I know this was answered, but everything has been changed since the last update. Updated stylesheet properties can be found below, which are now called layout details:

https://facebook.imtqy.com/react-native/docs/layout-props.html

Props :

marginHorizontal
alignContent
alignSelf
aspectRatio
borderBottomWidth
borderEndWidth
borderLeftWidth
borderRightWidth
borderStartWidth
borderTopWidth
borderWidth
bottom
display
end
flex
flexBasis
flexDirection
flexGrow
flexShrink
flexWrap
height
justifyContent
left
margin
marginBottom
marginEnd
alignItems
marginLeft
marginRight
marginStart
marginTop
marginVertical
maxHeight
maxWidth
minHeight
minWidth
overflow
padding
paddingBottom
paddingEnd
paddingHorizontal
paddingLeft
paddingRight
paddingStart
paddingTop
paddingVertical
position
right
start
top
width
zIndex
direction
+1

Source: https://habr.com/ru/post/1620337/


All Articles