React-native-render-html: baseFontStyle is not working with <li>

Created on 30 Sep 2020  路  6Comments  路  Source: meliorence/react-native-render-html

<HTML html={post.html} contentWidth={width} baseFontStyle={{ color: 'white' }} />

font styles are not applied to li. example html:

<ol><li>Line 1</li><li>Line 2</li><li>Line 3 <a href="https://github.com/">LINK</a> Example</li></ol>

screenshot-2020-10-01_01 47 02 484

  • Notice the numbers
bug

All 6 comments

@sayem314 Probably similar to #165, but since it was closed I will keep your issue open! I agree this should be solved.

I managed to change the color using the code to fix the RTL issue #286. By exchanging the background color from black to the preferred color. Hope this helps.

This issue has been fixed in the Foundry release. Try it out now! See #430 for instructions.

@jsamr any plans to also support list-style-type: "lower-roman" | "upper-roman" ?
Cheers

@harveyconnor not a priority but it should happen at some point!

@harveyconnor Good news, support for roman is on its way: https://github.com/meliorence/react-native-render-html/issues/286#issuecomment-818347185

Was this page helpful?
0 / 5 - 0 ratings

Related issues

presencewebdesign picture presencewebdesign  路  7Comments

kanikas24 picture kanikas24  路  5Comments

Aparus picture Aparus  路  3Comments

Anitorious picture Anitorious  路  7Comments

aiavci picture aiavci  路  3Comments