React Functional Component Wrapper For Iframe
npm install rfc-iframenpm install rfc-iframe --save
yarn add rfc-iframe
JS
import {IFrame} from 'rfc-iframe';
const WhatEver = () => {
return (
goober = {false} // default True
frameAttributes = {{width: "100%", ...}}
skipInterval = {false} // default True
loadTdFonts = true // default True
mobileSupportEnabled = {false} // default True
enabledLatencyForSafari = {false} // default True
enabledLatencyForMozilla = {false} // default True
externalStyleLinks = ["https://yourextercsslink.com"] // default []
externalScripts = ["https://yourexterscriptlink.com"] // default []
>
Your Beautiful Website
);
}
`
$3
* ` goober (optional) ` - this plugin supports goober out of the box. If you dont want this feature then set the value to false. (default boolean)
* ` frameAttributes (optional) ` - specify dom attributes for iframe. (default {})
* ` loadTdFonts (optional) ` - [Thrivedesk Specific]
* ` skipInterval (optional) ` - you can include any external css or css from you own domain. You have to pass the links as an array. (default [])
* ` externalStyleLinks (optional) ` - you can include any external css or css from you own domain. You have to pass the links as an array. (default [])
* ` externalScripts (optional) ` - you can include any external scripts or scripts from you own domain. You have to pass them as an array. (default [])
* ` mobileSupportEnabled (optional) ` - this solves the issue regarding browser on iphone. Keep it false if it causes any issues (default true)
* ` enabledLatencyForSafari (optional) ` - you can skip the initial latency for safari with this set to false. (default true)
* ` enabledLatencyForMozilla (optional) `` - you can skip the initial latency for mozilla with this set to false. (default true)