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

'Gradient' can only receive 'Stop' elements as children #31

Closed
abejfehr opened this issue May 8, 2016 · 3 comments
Closed

'Gradient' can only receive 'Stop' elements as children #31

abejfehr opened this issue May 8, 2016 · 3 comments

Comments

@abejfehr
Copy link

abejfehr commented May 8, 2016

Coming from this issue, I find that the same "SVG" I pasted in that issue gives me an error in react-native-svg. For some reason, my Stop elements must not have the 'Stop' type. Is this a bug?

In the meantime I'm also going to try upgrading my react-native version to see if that solves the issue

@abejfehr
Copy link
Author

abejfehr commented May 8, 2016

I'm afraid that the issue still persists. I took the import statement from the readme.io file and the code is the same as the previous issue, so I won't re-post that here.

@magicismight
Copy link
Collaborator

Sorry
I didnt notice that you have used the wrong prop stop-color. We use camel case as a prop name like: stopColor. And there is something wrong with warning in Gradient elements, Ill fix that later.

@magicismight
Copy link
Collaborator

If the issue still persists.
Feel free to reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants