Margin doesn't work properly

Hello,

It seems that style property “margin” doesn’t work as it suppose too. Documentation says, that it works like normal CSS margin, but it only works with 1 value given and not 2, 3 or 4. Here is Snack: https://snack.expo.io/@aeom/bWFkLX

Hey @aeom!

Unfortunately shorthand syntax isn’t supported by React Native. You’d have to specify each with marginTop, marginRight, etc. You can see all the CSS props here!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.