@komo-tech/react-native-widgets
v0.4.4
Published
Embed Komo content in your React Native applications.
Downloads
5,884
Readme
Embed Komo content in your React Native applications.
Installation
npm install @komo-tech/react-native-widgets
NOTE: This package has a peer dependency on react-native-webview, and recommends the latest major version, 11.x
.
Usage
From the Komo portal, navigate to the settings of the card to be embedded. Select the Embed
tab and copy the Native embed URL
in the right sidebar. Pass as a prop to the KomoCardWidget
, along with any optional styling or render props shown by the component prop typing.
import { KomoCardWidget } from '@komo-tech/react-native-widgets';
// ...
<KomoCardWidget
embedUrl={KomoCardNativeEmbedUrl}
containerStyle={{ maxWidth: '80%' }}
/>;