@graineai/inapp-react-native 0.18.0 → 0.19.0

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.
@@ -66,9 +66,11 @@ export function GraineVoiceLauncher({ webView: WebView, autoStart = false, trans
66
66
  });
67
67
  }, [client, post]);
68
68
  useEffect(() => {
69
- if (ready)
70
- pushContext();
71
- }, [ready, pushContext]);
69
+ if (!ready)
70
+ return;
71
+ pushContext();
72
+ return client.on("screen", () => pushContext());
73
+ }, [client, ready, pushContext]);
72
74
  const beginCall = useCallback(async () => {
73
75
  if (client.isConnected) {
74
76
  console.warn("[graine] The provider has its own connection open while GraineVoiceLauncher " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graineai/inapp-react-native",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "type": "module",
5
5
  "description": "Graine in-app agent for React Native \u2014 an agent that sees the screen your customer is on and can act on it.",
6
6
  "license": "MIT",