2.6.1 (2021-11-29)
2.6.0 (2021-10-13)
- iframe-plugin: the iframe is painted as a blank view (d40e98d), closes #41
- remove null from useHtmlIframeProps return signature (dead condition) (4c51d0a)
- iframe-plugin: support headers via
provideEmbeddedHeaders
prop (436a2ac)
2.5.0 (2021-06-08)
- iframe: support [email protected] (96c33b5)
2.4.0 (2021-05-21)
- iframe: did not pick config passed in rendererProps (3580d77)
- support [email protected]; beware of upstream breaking changes (53e322c)
2.3.0 (2021-04-17)
- iframe-plugin: support [email protected] (489f8f4)
2.2.2 (2021-04-17)
- restrict to react-native-render-html < 6.0.0-alpha.23 (3a8d9f8)
2.2.1 (2021-04-17)
- restrict compatible versions of react-native-render-html (032c4ed)
2.2.0 (2021-02-19)
- force responsive layout when scalesPageToFit = false (1:1) (1233104)
- iframe: new
removeBodySpacing
andinjectedCSSStyles
options (2166dc6)
2.1.1 (2021-02-18)
- replace outdated type import
RenderHTMLPassedProps
(872bc96)
2.1.0 (2021-02-08)
- 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)
- 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)
- iframe-plugin: support react-native-render-html 6.x (11a8ca0)
- iframe-plugin: -
extractHtmlIframeProps
has been dropped in favor ofuseHtmlIframeProps
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)
- iframe-plugin: resolve TypeError when renderersProp is not defined (54e650b)
1.1.0 (2020-12-05)
- iframe-config: new config option
webViewProps
(b7d16f8) - iframe-plugin: allow to override config in extractHtmlIframeProps (ee25f4b)
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):
- iframe-plugin: brand new iframe renderer (b08d56d)
- iframe-plugin: new scalesPageToFit config (8f5c030)
- iframe-plugin: the component inherits from
tagsStyles
andclassesStyles
styles when matched - iframe-plugin: compliance with React Native Render HTML RFC001: use
computeEmbeddedMaxWidth
to constrain max width for iframes