-
-
Notifications
You must be signed in to change notification settings - Fork 591
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
Lists bullets and numbers are always Black #165
Comments
I solved it by adding my own list prefix like this
After which my custom style was applied to the list prefix |
I am also implementing my own And yes, the color is set per Now I have a nice enumeration with dots.
|
@houke That's a great option for the numbered lists, thank-you! Do you have any thoughts for the unordered lists? I'd really rather not having to find icons for each unordered list type when it's already in the html content. I poked through the output form each of the htmlAttribs, children, convertedCSSStyles, passProps and nothing obvious stands out to me... Definitely think this should be a basic use case for sure. |
@donni106 how did you do that? I can't figure it out how to replace |
@ziyafenn sure, here a code snippet to replace
|
If anyone is looking for a way to fix this, here are the default renderers. You'll have to drop in your own font size and color.
|
This comment has been minimized.
This comment has been minimized.
This issue has been fixed in the Foundry release for a while now (#430). I'm going to lock the discussion, but feel free to ask for help in our Discord channel! |
Hi there,
Firstable, thanks for this library, its being awesome to render on react-native.
Nobody tried to change the baseFontColor and render lists? on a black background I changed font style with the prop:
But could not see bullets or list numbers.
As a solution I have extended the props of the baseFontStyle to this tags.
You can see the fixes here:
https://github.com/kikoseijo/react-native-render-html/commits/master
basically I did something like this for the
<ol>
and the following for the
<ul>
Solution its not the best I guess, but...
Bug, enhancement or my bad?
The text was updated successfully, but these errors were encountered: