File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,16 @@ class HtmlView extends PureComponent {
5252 }
5353
5454 componentWillReceiveProps ( nextProps ) {
55- if ( this . props . value !== nextProps . value || this . props . stylesheet !== nextProps . stylesheet ) {
56- this . startHtmlRender ( nextProps . value , nextProps . stylesheet ) ;
55+ if ( this . props . value !== nextProps . value || this . props . stylesheet !== nextProps . stylesheet || this . props . textComponentProps !== nextProps . textComponentProps ) {
56+ this . startHtmlRender ( nextProps . value , nextProps . stylesheet , nextProps . textComponentProps ) ;
5757 }
5858 }
5959
6060 componentWillUnmount ( ) {
6161 this . mounted = false ;
6262 }
6363
64- startHtmlRender ( value , style ) {
64+ startHtmlRender ( value , style , textComponentProps ) {
6565 const {
6666 addLineBreaks,
6767 onLinkPress,
@@ -89,6 +89,10 @@ class HtmlView extends PureComponent {
8989 }
9090 } ) ;
9191
92+ if ( textComponentProps ) {
93+ opts . textComponentProps = textComponentProps ;
94+ }
95+
9296 htmlToElement ( value , opts , ( err , element ) => {
9397 if ( err ) {
9498 onError ( err ) ;
You can’t perform that action at this time.
0 commit comments