@webotme/react-native 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/widget.tsx CHANGED
@@ -16,8 +16,7 @@ import {
16
16
  KeyboardAvoidingView,
17
17
  Platform,
18
18
  } from "react-native";
19
- import { Audio } from "expo-av";
20
- import { WebView } from "react-native-webview";
19
+ import { loadWebView } from "./lazy-webview";
21
20
  import { useWebotMe } from "./provider";
22
21
  import { AutoFlowExecutor } from "./AutoFlowExecutor";
23
22
  import type { WebotMeTheme, WebotMeAction, WebotMePendingWorkflow, WebotMeAutoTask, WebotMeScreenContext } from "./types";
@@ -342,6 +341,8 @@ export function WebotMeWidget({
342
341
  );
343
342
  }
344
343
 
344
+ const WebView = loadWebView();
345
+
345
346
  const web = (
346
347
  <WebView
347
348
  source={{ uri: `${chatUrl}?embed=1&bot=${botId}` }}