@applicaster/zapp-react-native-utils 14.0.15-alpha.3578310293 → 14.0.15-rc.1

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.
@@ -216,8 +216,13 @@ export class PlayerNative extends Player {
216
216
  };
217
217
 
218
218
  closeNativePlayer = () => {
219
- // TODO: Delete does not work
219
+ // The player component ref may be null (for example, when the native player view is not mounted),
220
+ // so calling closeNativePlayer on the component is best‑effort only. We cannot use invokeNativeFunction
221
+ // here because it prepends the view id, while the native closeNativePlayer implementation does not
222
+ // expect a view id argument. As a reliable fallback we always call stopBackgroundPlayback on the
223
+ // native module to ensure background playback is stopped.
220
224
  this.currentPlayerComponent()?.["closeNativePlayer"]?.();
225
+ this.getPlayerModule()?.stopBackgroundPlayback?.();
221
226
  };
222
227
 
223
228
  togglePlayPause = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "14.0.15-alpha.3578310293",
3
+ "version": "14.0.15-rc.1",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "14.0.15-alpha.3578310293",
30
+ "@applicaster/applicaster-types": "14.0.15-rc.1",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",