I'm just updating to newest wrappers version and f...
# react
p
I'm just updating to newest wrappers version and found out this doesn't work anymore:
Copy code
margin = Margin("0 auto")
Margin
cannot take raw string. How can I achieve it in the new API, best if avoiding assigning each margin separately (4 statements) and doing it in a single type-safe statement like
margin = margin(0.integer, Auto)
?
t
Copy code
margin = Margin(0.px, auto)
No magic strings! 🙂
🙌 1
p
nice, not sure why I didn't check this obvious solution
BTW, do you guys maintain a list of breaking changes between releases? it would help especially if someone doesn't follow the recent releases
t
It will be every release message 🙂 Stricter and stricter!
In case of
Margin
it was internal factory method with invalid modifier. Valid factory method was available at the same moment