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

rgb colors not working #2267

Closed
johhansantana opened this issue Mar 31, 2022 · 4 comments
Closed

rgb colors not working #2267

johhansantana opened this issue Mar 31, 2022 · 4 comments
Labels
needs: issue template Issue is missing the required issue template fields resolution: wontfix

Comments

@johhansantana
Copy link

Just wanted to know if this is happening to others as it seems to not work with regular react-native as well.

https://codesandbox.io/s/musing-easley-34qlgi?file=/src/App.js

@necolas necolas added the needs: issue template Issue is missing the required issue template fields label Mar 31, 2022
@github-actions
Copy link

⚠️ This issue is missing required fields. To avoid this issue being closed, please provide the required information as described in the ISSUE TEMPLATE.

@jamesallain
Copy link

jamesallain commented Apr 5, 2022

You're missing commas. Change <Text style={{ color: "rgb(255 0 0)" }}>hey</Text> to <Text style={{ color: "rgb(255, 0, 0)" }}>hey</Text>

@johhansantana
Copy link
Author

You're missing commas. Change <Text style={{ color: "rgb(255 0 0)" }}>hey</Text> to <Text style={{ color: "rgb(255, 0, 0)" }}>hey</Text>

yup, it should work though. If you see the second line using regular html it works without commas. react-native doesn't seem to work with this newer syntax though.

@necolas
Copy link
Owner

necolas commented Apr 5, 2022

react-native doesn't seem to work with this newer syntax though

And so it's a "wontfix" until it is fixed upstream in RN's color parser.

Next time, please follow the template in the issue instead of deleting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: issue template Issue is missing the required issue template fields resolution: wontfix
Projects
None yet
Development

No branches or pull requests

3 participants