@applicaster/zapp-react-native-utils 14.0.15-alpha.1353611523 → 14.0.15-rc.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.
|
@@ -216,9 +216,11 @@ export class PlayerNative extends Player {
|
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
closeNativePlayer = () => {
|
|
219
|
-
//
|
|
220
|
-
//
|
|
221
|
-
//
|
|
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.
|
|
222
224
|
this.currentPlayerComponent()?.["closeNativePlayer"]?.();
|
|
223
225
|
this.getPlayerModule()?.stopBackgroundPlayback?.();
|
|
224
226
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "14.0.15-
|
|
3
|
+
"version": "14.0.15-rc.0",
|
|
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-
|
|
30
|
+
"@applicaster/applicaster-types": "14.0.15-rc.0",
|
|
31
31
|
"buffer": "^5.2.1",
|
|
32
32
|
"camelize": "^1.0.0",
|
|
33
33
|
"dayjs": "^1.11.10",
|