Last updated
Last updated
This example shows how to integrate the Tiledesk Widget via a WebView for React Native Expo or React Native CLI project
Make sure you have installed react-native-webview via Expo command:
Consider an *.html file into assets that contains basic html code with script tag able to integrate tilesk widget insede your webview
Add a webview to the file and set the source as the url of the local html file
Add a webview to the file and set the source as html code
Make sure you have installed react-native-webview via Expo command:
Consider an *.html file into assets that contains basic html code with script tag able to integrate tiledesk widget inside your webview ex. “widget.html”
Add the widget.html file to the correct project directory.
For Android: Place the file in android/app/src/main/assets/. For iOS: Place the file in ios/<AppName>/widget.html. If the assets folder does not exist (on Android), you can create it manually.
Add webview to App.tsx
On Android, make sure the widget.html file is in the android/app/src/main/assets/ folder. If it doesn't exist, you can create it.
Additionally, the AndroidManifest.xml may require permission to access local files:
You can find here a complete or