Skip to content

Commit

Permalink
apply text styles to the list denoters
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacup committed Nov 7, 2019
1 parent 51b07b7 commit 4283e99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-markdown-display",
"version": "4.0.3",
"version": "4.0.4",
"description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer), originally created by Mient-jan Stelling as react-native-markdown-renderer",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/renderRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const renderRules = {
if (hasParents(parent, 'bullet_list')) {
return (
<View key={node.key} style={styles.listUnorderedItem}>
<Text style={styles.listUnorderedItemIcon}>
<Text style={[styles.text, styles.listUnorderedItemIcon]}>
{Platform.select({
[PlatformEnum.ANDROID]: '\u2022',
[PlatformEnum.IOS]: '\u00B7',
Expand All @@ -199,7 +199,7 @@ const renderRules = {
}
return (
<View key={node.key} style={styles.listOrderedItem}>
<Text style={styles.listOrderedItemIcon}>
<Text style={[styles.text, styles.listOrderedItemIcon]}>
{listItemNumber}
{node.markup}
</Text>
Expand Down

0 comments on commit 4283e99

Please sign in to comment.