Detalhes do pacote

@native-html/iframe-plugin

native-html42.8kMIT2.6.1

🌐 A WebView-based plugin to render iframes in react-native-render-html

react-native, react-native-render-html, html, iframe

readme (leia-me)

Plugins for react-native-render-html

Packages

Package Release Build Status Coverage
@native-html/iframe-plugin npm CI codecov
@native-html/heuristic-table-plugin npm CI codecov
@native-html/table-plugin npm CI codecov

Plugins Compat Table

react-native-render-html iframe table heuristic-table
≄ 4.2.1 < 5.0.0 No Plugin, iframes were rendered internally 2.x (documentation) No Plugin
≄ 5.0.0 < 6.0.0 1.x (documentation) 3.x (documentation) No Plugin
≄ 6.0.0 2.x (documentation) 4.x (documentation)
5.x (documentation)
0.x (documentation)

changelog (log de mudanças)

2.6.1 (2021-11-29)

2.6.0 (2021-10-13)

Bug Fixes

  • iframe-plugin: the iframe is painted as a blank view (d40e98d), closes #41
  • remove null from useHtmlIframeProps return signature (dead condition) (4c51d0a)

Features

  • iframe-plugin: support headers via provideEmbeddedHeaders prop (436a2ac)

2.5.0 (2021-06-08)

Features

  • iframe: support react-native-render-html@6.0.0-beta.0 (96c33b5)

2.4.0 (2021-05-21)

Bug Fixes

  • iframe: did not pick config passed in rendererProps (3580d77)

Features

  • support react-native-render-html@6.0.0-alpha.25; beware of upstream breaking changes (53e322c)

2.3.0 (2021-04-17)

Features

  • iframe-plugin: support react-native-render-html@6.0.0-alpha.23 (489f8f4)

2.2.2 (2021-04-17)

Bug Fixes

  • restrict to react-native-render-html < 6.0.0-alpha.23 (3a8d9f8)

2.2.1 (2021-04-17)

Bug Fixes

  • restrict compatible versions of react-native-render-html (032c4ed)

2.2.0 (2021-02-19)

Bug Fixes

  • force responsive layout when scalesPageToFit = false (1:1) (1233104)

Features

  • iframe: new removeBodySpacing and injectedCSSStyles options (2166dc6)

2.1.1 (2021-02-18)

Bug Fixes

  • replace outdated type import RenderHTMLPassedProps (872bc96)

2.1.0 (2021-02-08)

Features

  • iframe-plugin: handle baseUrl for inline iframe source (ac0d125)
  • iframe-plugin: support relative src URLs (3f13d68)

2.0.2 (2021-02-07)

2.0.1 (2021-02-07)

Bug Fixes

  • iframe-plugin: pass anchor attributes and target to onLinkPress (a5c22e8)
  • iframe-plugin: upgrade webshell to v2.3.0 fixing potential infinite re-renders (a3d9248)

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

1.1.1 (2020-12-05)

Bug Fixes

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

1.1.0 (2020-12-05)

Features

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

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