iamacup / react-native-markdown-display

React Native 100% compatible CommonMark renderer
MIT License
568 stars 167 forks source link

can't apply styles to a bullet_list #162

Closed y-maslouskaya closed 9 months ago

y-maslouskaya commented 2 years ago

I am trying to add styles for bullet_list like these: bullet_list: { marginTop: 16, marginBottom: 50, lineHeight: 22, },

But, unfortunately, nothing is changing. When I do the same for ordered_list, it works just fine.

onepointconsulting commented 2 years ago

Have you tried something like this:

    bullet_list_icon: {
        marginLeft: 10,
        marginRight: 10
    },
    // @pseudo class, does not have a unique render rule
    bullet_list_content: {
        fontSize: 14,
        flex: 1,
    }
y-maslouskaya commented 2 years ago

@onepointconsulting Thank you. It helped.