react-native-css-modules icon indicating copy to clipboard operation
react-native-css-modules copied to clipboard

Support for linear-gradient

Open CoreyKaylor opened this issue 6 years ago • 1 comments

It would be great to have a CSS-based solution for linear-gradient. Possibly relying on this community project? https://github.com/react-native-community/react-native-linear-gradient

CoreyKaylor avatar Apr 30 '19 14:04 CoreyKaylor

It is definitely possible, but requires a babel plugin that would switch the element to a gradient component when a style with gradient is used.

The user would also need to setup and link the native gradient library.

It is a bit complicated and that is the reason why it is not supported yet.

kristerkari avatar Apr 30 '19 16:04 kristerkari