List of react-native StyleSheet properties and options

- 1 answer

Ad

I've been searching the web for a list of all the possible react-native StyleSheet options and their values. Not to be found, does anyone have a link to such a documentation?

Ad

Answer

Ad

Here they are, separated by component type:

View

Image

Text

Flexbox

Transform

Where you see enum 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')

These usually closely resemble css properties you would find on the web.


UPDATE

As answered below by @muhammad-hannan, you can also find the full layout properties list there.

Ad
source: stackoverflow.com
Ad