-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration with Expo and React native? #618
Comments
Hello @GuilhermeGuiuler unfortunately our Embed SDK supports only web environments as it relies on use of An alternative solution for you might be to embed a WebView with local HTML page that uses the Embed SDK. Then you would need to connect the static HTML page logic with code in your app - it looks like you should be able to do it via In future, it might be interesting to extend our Embed SDK with such wrapper for React Native. However we do not have any plans like this for now. |
Here is my implementation for React Native using WebView and PostMessage. If you guys have any suggestions to update this component, let's collaborate !
|
It looks like you are using embed SDK v0 that is no longer supported. You should use current version - you can find it in this repo or at This is a full example: <div id="wrapper" style="height:400px"></div>
<script src="//embed.typeform.com/next/embed.js"></script>
<script>
window.tf.createWidget('R0wDakKn', {
container: document.querySelector('#wrapper'),
onEndingButtonClick: (payload) => {
console.log('ending button clicked:', payload)
}
})
</script> Hope this helps. Do you think a separate library with the react native wrapper would be helpful? |
Any way to use it at the expo?
I need to use the
onSubmit
,onEndingButtonClick
functionsThe text was updated successfully, but these errors were encountered: