Dynamic functions
All platforms
2.0.0
If you need to pass a value from JSX to your stylesheet
you can do so using a concept called dynamic function
.
Usage
To use a dynamic function, change your stylesheet’s value from an object
to a function
:
Now, you can pass any number of arguments, all with TypeScript hints: