react-native-ficus-ui icon indicating copy to clipboard operation
react-native-ficus-ui copied to clipboard

Use emotion to render css

Open DecampsRenan opened this issue 1 year ago • 0 comments

The idea is to manage theme and css via emotion; this could enable some nice features like:

  • as prop
  • Native support of hardcoded css values (right now, only theme values are accepted => we can't work with dynamic colors sent by the api or defined by the user for example)
  • Alias support (not sure), so using h or height is the same

Usage:

<Box as={Link} color="red.200" />

Maybe using something like emotion could help (see https://emotion.sh/docs/styled#as-prop)

DecampsRenan avatar Dec 12 '23 15:12 DecampsRenan