How To: Embed in a React Native app
How to publish your embeddable inside a React Native app
Embedding your embeddable in a React Native app involves using the WebView
component that comes as part of the react-native-webview
library.
We use WebView to embed an Embeddables preview URL, since we can’t pass HTML directly into the WebView.
For embedding in other environments, check out embedding in your website or a React app.
Install the react-native-webview library
If you don’t already have it installed, run:
Import WebView into your React file
Insert a WebView
Optional: Give it dimensions
If you can’t see it initially, make sure to give it some styles to ensure that it has non-zero zero dimensions:
Optional: Pass properties into User Data
To pass User Data properties into the embeddable, include them in the URL as URL params.
In the Builder, make sure to add those keys into the Embed URL settings of the embeddable.
Embedding in a website or React app?
How To: Embed in your website
How to publish your embeddable to your wesite
How To: Embed in a React app
How to publish your embeddable inside a React app