-
-
Notifications
You must be signed in to change notification settings - Fork 588
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
Cannot override list margins (ul, ol li) #68
Comments
Hi, you're correct, there is no simple way to change these styles for now. Maybe we could add a style prop that would be merged with all the default styles for the renderers supplied with the plugin. I don't want to create too much additional props to tweak styling here and there. I feel like there's too much props already. In the meantime, you can just copy/paste the renderer and change these values however you see fit and add your custom renderer to your |
This should be fixed in 3.6.0. |
This doesn't seem to be fixed, passing a style with margin inside seems to have no effect. |
The Will there be a prop in some future version, or do we need to create a custom renderer to change the margin? |
Any solution for this? |
@pataar maybe I'll regret this, but a hacky workaround that seems to work for me is to set
|
This should still be open, there's still no way to override the |
@systemride You should be able to set margins for lists in the foundry pre-release, see #430 for instructions on how to try it out. |
It seems that there is no way to override list margins.
Padding left is hard coded for
ul
andol
tags here: https://github.com/archriss/react-native-render-html/blob/master/src/HTMLRenderers.js#L100And margin bottom is hard coded for
li
tags here: https://github.com/archriss/react-native-render-html/blob/master/src/HTMLRenderers.js#L93Am I correct? Is there any workaround for this? I think it should be possible to override those values somehow.
The text was updated successfully, but these errors were encountered: