@beta-gamer/react-native 0.1.12 → 0.1.18

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
@@ -203,7 +203,7 @@ function GameWebView({ game, style }) {
203
203
  if (session.game !== game) return null;
204
204
  const initScript = `
205
205
  window.__BG_TOKEN__ = ${JSON.stringify(token)};
206
- window.dispatchEvent(new Event('bg:ready'));
206
+ window.postMessage(JSON.stringify({ type: 'bg:init', token: ${JSON.stringify(token)} }), '*');
207
207
  true;
208
208
  `;
209
209
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
package/dist/index.mjs CHANGED
@@ -162,7 +162,7 @@ function GameWebView({ game, style }) {
162
162
  if (session.game !== game) return null;
163
163
  const initScript = `
164
164
  window.__BG_TOKEN__ = ${JSON.stringify(token)};
165
- window.dispatchEvent(new Event('bg:ready'));
165
+ window.postMessage(JSON.stringify({ type: 'bg:init', token: ${JSON.stringify(token)} }), '*');
166
166
  true;
167
167
  `;
168
168
  return /* @__PURE__ */ jsx4(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beta-gamer/react-native",
3
- "version": "0.1.12",
3
+ "version": "0.1.18",
4
4
  "description": "React Native SDK for Beta Gamer GaaS — composable game components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",