react-native-fence-html icon indicating copy to clipboard operation
react-native-fence-html copied to clipboard

Properly merge custom and default renderers

Open Exilz opened this issue 8 years ago • 1 comments

There was a problem with the custom renderers prop. If you provide some custom renderers, (ie : only for <h2>), the default one will not be merged with your custom ones.

Before I realized it, <img> weren't showing anymore on my app.

I merged HTMLRenderers and the optionnal renderers prop in the constructor so I could use it on line 90.

I left untouched defaultProps.

Exilz avatar Oct 24 '16 13:10 Exilz

+1 please merge, this solution works

aronnebrivio avatar Mar 30 '17 16:03 aronnebrivio