Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for linear-gradient #25

Open
CoreyKaylor opened this issue Apr 30, 2019 · 1 comment
Open

Support for linear-gradient #25

CoreyKaylor opened this issue Apr 30, 2019 · 1 comment
Labels
Enhancement ✨ New feature or request Help wanted 🙋 Extra attention is needed

Comments

@CoreyKaylor
Copy link

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

@kristerkari kristerkari added Enhancement ✨ New feature or request Help wanted 🙋 Extra attention is needed labels Apr 30, 2019
@kristerkari
Copy link
Owner

kristerkari commented Apr 30, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ New feature or request Help wanted 🙋 Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants