Skip to content

Releases: native-html/plugins

@native-html/iframe-plugin@1.1.2

07 Feb 16:20
Compare
Choose a tag to compare

1.1.2 (2021-02-07)

Bug Fixes

  • iframe-plugin: replace htmlAttribs in onLinkPress with empty object (6caee08)
  • iframe-plugin: upgrade webshell to v2.3.0 fixing potential infinte re-renders (49aa19d)

@native-html/table-plugin@4.0.0

06 Feb 11:39
Compare
Choose a tag to compare

4.0.0 (2021-02-06)

Bug Fixes

  • table-plugin: mark displayMode field as optional (b395a49)

Features

  • table-plugin: support react-native-render-html 6.x (1526efe)

BREAKING CHANGES

  • table-plugin: - extractHtmlTableProps has been dropped in favor of
    useHtmlTableProps hook for reusability.
  • IGNORED_TAGS is not exported anymore, and not necessary.
  • requires react-native 0.63.x and above
  • new tableModel export for the new custom renderers API

@native-html/iframe-plugin@2.0.0

06 Feb 11:57
Compare
Choose a tag to compare

2.0.0 (2021-02-06)

Features

  • iframe-plugin: support react-native-render-html 6.x (11a8ca0)

BREAKING CHANGES

  • iframe-plugin: - extractHtmlIframeProps has been dropped in favor of
    useHtmlIframeProps hook for reusability.
  • requires react-native 0.63.x and above
  • new iframeModel export for the new custom renderers API

@native-html/table-plugin@3.1.0

05 Dec 16:05
Compare
Choose a tag to compare

3.1.0 (2020-12-05)

Features

  • table-plugin: add new tableConfig argument to extractHtmlTableProps (366c156)
  • table-plugin: new displayMode value, "embedded" (0ec4937)

@native-html/table-plugin@3.0.1

05 Dec 11:04
Compare
Choose a tag to compare

3.0.1 (2020-12-05)

Misc

  • Rework version range for react-native-render-html

@native-html/table-plugin@3.0.0

05 Dec 10:36
Compare
Choose a tag to compare

This release requires react-native-render-html ≥ 5.0.0! Be aware, its API has changed a little:

import React from 'react';
import { ScrollView } from 'react-native';
import HTML from 'react-native-render-html';
import table, { IGNORED_TAGS } from '@native-html/table-plugin';
import WebView from 'react-native-webview';

const html = `
<table>
  <tr>
    <th>Entry Header 1</th>
    <th>Entry Header 2</th>
  </tr>
  <tr>
    <td>Entry First Line 1</td>
    <td>Entry First Line 2</td>
  </tr>
</table>
`;

const htmlProps = {
  WebView,
  renderers: {
    table
  },
  ignoredTags: IGNORED_TAGS,
  renderersProps: {
    table: {
      // Put the table config here (previously,
      // the first argument of makeTableRenderer)
    }
  }
};

export const Example = () => (
  <ScrollView>
    <HTML source={{ html }} {...htmlProps} />
  </ScrollView>
);

Features

  • table-plugin: new lightweight API for react-native-render-html v5.0 (a7fa70a)
  • table-plugin: new displayMode prop and compliance with RFC001 (1de3df0)
  • table-plugin: the component now inherits from tagsStyles and classesStyles when matched

BREAKING CHANGES

  • table-plugin: makeTableRenderer and makeCustomTableRenderer have been dropped in favor of the default table renderer export and extractHtmlTableProp function for custom renderers. This release takes advantage of the availability of domNode in custom renderers and the new domNodeToHTMLString utility available in react-native-render-html. Configuration for the table renderer is now read from
    renderersProps.table prop of the HTML component.

@native-html/iframe-plugin@1.1.1

05 Dec 18:17
Compare
Choose a tag to compare

1.1.1 (2020-12-05)

Bug Fixes

  • iframe-plugin: resolve TypeError when renderersProp is not defined (54e650b)

@native-html/iframe-plugin@1.1.0

05 Dec 15:58
Compare
Choose a tag to compare

1.1.0 (2020-12-05)

Features

  • iframe-plugin: new config option webViewProps (b7d16f8)
  • iframe-plugin: allow to override config in extractHtmlIframeProps (ee25f4b)

@native-html/iframe-plugin@1.0.0

05 Dec 12:13
Compare
Choose a tag to compare

1.0.0 (2020-12-05)

Here comes a brand new renderer for iframe, which has been extracted from react-native-render-html. It has a new powerful feature: scalesPageToFit (disabled by default) which will zoom-out just the right amount when the width of the iframe is greater than the available width on screen (as determined by HTML contentWidth prop.) In the screenshot below, scalesPageToFit is disabled (left), and enabled (right):

Features

  • iframe-plugin: brand new iframe renderer (b08d56d)
  • iframe-plugin: new scalesPageToFit config (8f5c030)
  • iframe-plugin: the component inherits from tagsStyles and classesStyles styles when matched
  • iframe-plugin: compliance with React Native Render HTML RFC001: use computeEmbeddedMaxWidth to constrain max width for iframes

Release 2.1.4

08 Oct 14:02
Compare
Choose a tag to compare

2.1.4 (2020-10-08)

Misc

  • Ornamental changes (README)