@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/README.md +79 -0
- package/package.json +16 -5
- package/src/AutoFlowExecutor.tsx +19 -8
- package/src/chat.ts +371 -0
- package/src/client.ts +4 -1
- package/src/executor.ts +190 -0
- package/src/index.ts +57 -0
- package/src/lazy-webview.tsx +59 -0
- package/src/navigationAdapter.ts +117 -0
- package/src/provider.tsx +103 -76
- package/src/runtime.ts +35 -0
- package/src/safety.ts +72 -0
- package/src/scan.txt +1 -0
- package/src/screenHook.ts +82 -0
- package/src/screenScanner.tsx +382 -0
- package/src/types.ts +2 -0
- package/src/voice.ts +722 -0
- package/src/widget.tsx +3 -2
package/src/widget.tsx
CHANGED
|
@@ -16,8 +16,7 @@ import {
|
|
|
16
16
|
KeyboardAvoidingView,
|
|
17
17
|
Platform,
|
|
18
18
|
} from "react-native";
|
|
19
|
-
import {
|
|
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}` }}
|