0.4.4 • Published 2 years ago

@komo-tech/react-native-widgets v0.4.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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%' }}
/>;