@kontextso/sdk-react-native 3.0.8-rc.0 → 3.0.8

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/dist/index.js CHANGED
@@ -492,7 +492,7 @@ var import_react_native3 = require("react-native");
492
492
  var import_react_native_device_info = __toESM(require("react-native-device-info"));
493
493
 
494
494
  // package.json
495
- var version = "3.0.7";
495
+ var version = "3.0.8";
496
496
 
497
497
  // src/NativeRNKontext.ts
498
498
  var import_react_native2 = require("react-native");
package/dist/index.mjs CHANGED
@@ -464,7 +464,7 @@ import { Appearance, Dimensions, PixelRatio, Platform } from "react-native";
464
464
  import DeviceInfo from "react-native-device-info";
465
465
 
466
466
  // package.json
467
- var version = "3.0.7";
467
+ var version = "3.0.8";
468
468
 
469
469
  // src/NativeRNKontext.ts
470
470
  import { TurboModuleRegistry } from "react-native";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontextso/sdk-react-native",
3
- "version": "3.0.8-rc.0",
3
+ "version": "3.0.8",
4
4
  "description": "Kontext SDK for React Native",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -296,6 +296,13 @@ const Format = ({ code, messageId, wrapper, onEvent, ...otherParams }: FormatPro
296
296
  }
297
297
  }
298
298
 
299
+ /*
300
+ * Fix for Android issue in Saylo.
301
+ * When the iframe is loaded, the onLoad event is sometimes called two or more times.
302
+ * When these events fire too quickly, the init-iframe response from the server gets discarded.
303
+ * As a result, our SDK doesn’t send the update-iframe event back to the server, and the stream never starts.
304
+ * This fix will send the update-iframe event even if the init-iframe isn’t received.
305
+ */
299
306
  useEffect(() => {
300
307
  const interval = setInterval(() => {
301
308
  if (messageStatusRef.current === MessageStatus.None) {