react-native-htmlview
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -58,4 +58,4 @@ import React, {PureComponent} from 'react'; | ||
componentWillReceiveProps(nextProps) { | ||
if (this.props.value !== nextProps.value || this.props.stylesheet !== nextProps.stylesheet || this.props.textComponentProps !== nextProps.textComponentProps) { | ||
this.startHtmlRender(nextProps.value, nextProps.stylesheet, nextProps.textComponentProps); | ||
if (this.props.value !== nextProps.value || this.props.stylesheet !== nextProps.stylesheet || this.props.textComponentProps !== nextProps.textComponentProps || this.props.nodeComponentProps !== nextProps.nodeComponentProps) { | ||
this.startHtmlRender(nextProps.value, nextProps.stylesheet, nextProps.textComponentProps, nextProps.nodeComponentProps); | ||
} | ||
@@ -68,3 +68,3 @@ } | ||
startHtmlRender(value, style, textComponentProps) { | ||
startHtmlRender(value, style, textComponentProps, nodeComponentProps) { | ||
const { | ||
@@ -101,2 +101,6 @@ addLineBreaks, | ||
if (nodeComponentProps) { | ||
opts.nodeComponentProps = nodeComponentProps; | ||
} | ||
htmlToElement(value, opts, (err, element) => { | ||
@@ -103,0 +107,0 @@ if (err) { |
{ | ||
"name": "react-native-htmlview", | ||
"version": "0.13.0", | ||
"version": "0.14.0", | ||
"description": "A component which renders HTML content as native views", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -192,39 +192,2 @@ # React Native HTMLView [![Build status](https://api.travis-ci.org/jsdf/react-native-htmlview.svg?branch=master)](https://travis-ci.org/jsdf/react-native-htmlview) | ||
### Changelog | ||
- 0.13.0 | ||
- fixed `Failed prop type` error on react-native@0.56 [#228](https://github.com/jsdf/react-native-htmlview/pull/228) | ||
- added support for `<s>` tag (strikethrough text) [#210](https://github.com/jsdf/react-native-htmlview/pull/210) | ||
- fix to re-render when `textComponentProps` changes [#188](https://github.com/jsdf/react-native-htmlview/pull/188) | ||
- fixed line breaks for `<li>` elements [#166](https://github.com/jsdf/react-native-htmlview/pull/166) | ||
- Thanks to @mdimovska, @alphasp, @waldyrious, @macgregorthomson | ||
- 0.12.1 | ||
- use ViewPropTypes | ||
- fix an issue with htmlparser2-without-node-native and inline-requires | ||
- Thanks to @nikolaik and @douglasjunior | ||
- 0.12.0 | ||
- inherited styles are now applied in the correct order | ||
- fixed an issue where the style array was unnecessarily complex and included multiple empty objects | ||
- changes to the stylesheet will now trigger a re-render | ||
- `textAlign` works correctly in most cases | ||
- fixed an ordered list numbering bug | ||
- added `onLinkLongPress` property | ||
- default and custom styles now apply correctly to `<li>` prefix | ||
- fixed `code` font for Android (monospace) | ||
- Thanks to @JoeyBetlej, @isilher, @bky, @RobPando | ||
- 0.11.0 | ||
- `style` prop passed via `textComponentProps` is now respected even if no wrapping element is present | ||
- underline style | ||
- line break after `li` | ||
- nested elements (`<b><i>...</i></b>`) work properly | ||
- use `PureComponent` | ||
- sundry refactoring | ||
- Thanks to @michalraska, @tywhang, @isilher, @douglasjunior, @shashkovdanil | ||
- 0.10.0 | ||
- added props: `bullet`, `paragraphBreak`, `lineBreak`, `NodeComponent`, `nodeComponentProps`, `RootComponent`, `rootComponentProps`, `TextComponent`, `textComponentProps` | ||
- 0.9.0 | ||
- exposed `styles` prop | ||
- exposed `defaultRenderer` in `renderNode` (@brandonreavis, @koenpunt) | ||
- added `addLineBreaks` (@jmacedoit) | ||
- 0.7.0 - fixed for recent versions of react-native | ||
- 0.6.0 - onLinkPress fix (@damusnet), headers now only have one single line break (@crysfel) | ||
- 0.5.0 - react-native 0.25 compat (@damusnet) | ||
- 0.4.0 - re-renders properly when html content changes | ||
See [CHANGELOG.md](CHANGELOG.md). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198971
17
457
193