Breakpoints
Any style can change based on breakpoints. To do this, change a value to an object:
You can even use it with nested objects like transform
or shadowOffset
:
Library will choose the correct value (based on screen width) in the runtime.
There are two predefined breakpoints for mobile: landscape
and portrait
.
If you register your own breakpoints, these will be overridden.