@applicaster/zapp-react-native-ui-components 14.0.25-rc.2 → 14.0.25-rc.3
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { View } from "react-native";
|
|
3
2
|
|
|
4
3
|
import { BaseFocusable } from "../BaseFocusable";
|
|
5
4
|
import { FocusableGroupContextProvider } from "../../Contexts/FocusableGroupContext";
|
|
@@ -76,7 +75,7 @@ class FocusableGroup extends BaseFocusable<Props> {
|
|
|
76
75
|
const focusableId = `focusable-group-${id}`;
|
|
77
76
|
|
|
78
77
|
return (
|
|
79
|
-
<
|
|
78
|
+
<div
|
|
80
79
|
id={focusableId}
|
|
81
80
|
data-testid={focusableId}
|
|
82
81
|
style={style}
|
|
@@ -85,7 +84,7 @@ class FocusableGroup extends BaseFocusable<Props> {
|
|
|
85
84
|
<FocusableGroupContextProvider id={id}>
|
|
86
85
|
{children}
|
|
87
86
|
</FocusableGroupContextProvider>
|
|
88
|
-
</
|
|
87
|
+
</div>
|
|
89
88
|
);
|
|
90
89
|
}
|
|
91
90
|
}
|
|
@@ -3,16 +3,25 @@
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { TVEventHandlerComponent } from "@applicaster/zapp-react-native-tvos-ui-components/Components/TVEventHandlerComponent";
|
|
5
5
|
import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
6
|
+
import { useIsStandaloneFullscreen } from "@applicaster/zapp-react-native-utils/reactHooks/screen";
|
|
6
7
|
|
|
7
8
|
export const withTvEventHandler = (Component) => {
|
|
8
9
|
return function WithTVEventHandler(props) {
|
|
9
10
|
const navigator = useNavigation();
|
|
10
11
|
|
|
12
|
+
const isStandaloneFullscreen = useIsStandaloneFullscreen();
|
|
13
|
+
|
|
11
14
|
const remoteHandler = (event) => {
|
|
12
15
|
const { eventType } = event;
|
|
13
16
|
|
|
14
17
|
const canGoBack = navigator.canGoBack();
|
|
15
18
|
|
|
19
|
+
if (eventType === "menu" && isStandaloneFullscreen) {
|
|
20
|
+
navigator.goHome();
|
|
21
|
+
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
16
25
|
if (eventType === "menu" && canGoBack) {
|
|
17
26
|
navigator.goBack();
|
|
18
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "14.0.25-rc.
|
|
3
|
+
"version": "14.0.25-rc.3",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "14.0.25-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "14.0.25-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "14.0.25-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "14.0.25-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "14.0.25-rc.3",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "14.0.25-rc.3",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "14.0.25-rc.3",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "14.0.25-rc.3",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"url": "^0.11.0",
|