@applicaster/zapp-react-native-utils 12.0.26-rc.2 → 12.0.26
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "12.0.26
|
|
3
|
+
"version": "12.0.26",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "12.0.26
|
|
31
|
+
"@applicaster/applicaster-types": "12.0.26",
|
|
32
32
|
"buffer": "^5.2.1",
|
|
33
33
|
"camelize": "^1.0.0",
|
|
34
34
|
"create-react-context": "^0.2.3",
|
|
@@ -31,6 +31,7 @@ import { useConnectionInfo } from "../connection";
|
|
|
31
31
|
import { getTargetScreenData } from "../screen/useTargetScreenData";
|
|
32
32
|
|
|
33
33
|
import { isTV, isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
34
|
+
import { ROUTE_TYPES } from "@applicaster/zapp-react-native-utils/navigationUtils/routeTypes";
|
|
34
35
|
import { useNavbarState } from "../screen";
|
|
35
36
|
import { useNavigation } from "./useNavigation";
|
|
36
37
|
import { useModalStore } from "../../modalState";
|
|
@@ -447,11 +448,14 @@ export const useIsScreenActive = () => {
|
|
|
447
448
|
const pathname = usePathname();
|
|
448
449
|
const { currentRoute, videoModalState } = useNavigation();
|
|
449
450
|
|
|
450
|
-
if (
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
451
|
+
if (videoModalState.visible) {
|
|
452
|
+
if (pathname.includes(ROUTE_TYPES.VIDEO_MODAL)) {
|
|
453
|
+
return true;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if (["FULLSCREEN", "MAXIMIZED", "PIP"].includes(videoModalState.mode)) {
|
|
457
|
+
return false;
|
|
458
|
+
}
|
|
455
459
|
}
|
|
456
460
|
|
|
457
461
|
return pathname === currentRoute;
|