Wednesday, August 5, 2020

[React Native] - Default Layout Values

If you are working with React Native, you can check this summary table with defaults values of style properties.

Layout property    |    default value    |    doc link
-----------------------------------------------------------------
alignItems                          stretch                          https://reactnative.dev/docs/layout-props#alignitems

directions                           inherit                          https://reactnative.dev/docs/layout-props#direction

flexDirection                      column                         https://reactnative.dev/docs/layout-props#flexdirection

fledWrap                            nowrap                         https://reactnative.dev/docs/layout-props#flexwrap

justifyContent                    flex-start                       https://reactnative.dev/docs/layout-props#justifycontent

overflow                             visible                           https://reactnative.dev/docs/layout-props#overflow

position                               relative                         https://reactnative.dev/docs/layout-props#position

If you are using some of this props on your stylesheet, you can remove them, unless they are being used to rewrite other previous conditions.

No comments :

Post a Comment