@applicaster/zapp-react-native-ui-components 13.0.0-alpha.1436249127 → 13.0.0-alpha.1488035644
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/Components/AppContainer/__tests__/__snapshots__/AppContainer.test.js.snap +1 -1
- package/Components/AudioPlayer/__tests__/__snapshots__/Runtime.test.js.snap +4 -4
- package/Components/AudioPlayer/__tests__/__snapshots__/artWork.test.js.snap +3 -3
- package/Components/AudioPlayer/__tests__/__snapshots__/audioPlayer.test.js.snap +6 -6
- package/Components/AudioPlayer/__tests__/__snapshots__/audioPlayerLayout.test.js.snap +7 -7
- package/Components/AudioPlayer/__tests__/__snapshots__/channel.test.js.snap +3 -3
- package/Components/AudioPlayer/__tests__/__snapshots__/summary.test.js.snap +2 -2
- package/Components/AudioPlayer/__tests__/__snapshots__/title.test.js.snap +2 -2
- package/Components/BaseFocusable/index.ios.ts +1 -1
- package/Components/BaseFocusable/index.tsx +1 -1
- package/Components/Cell/Cell.tsx +7 -3
- package/Components/Cell/CellWithFocusable.tsx +13 -10
- package/Components/Cell/TvOSCellComponent.tsx +0 -4
- package/Components/CellRendererResolver/__tests__/__snapshots__/cellRendererResolver.test.js.snap +20 -20
- package/Components/CellRendererResolver/__tests__/cellRendererResolver.test.js +5 -3
- package/Components/ComponentResolver/__tests__/__snapshots__/componentResolver.test.js.snap +5 -5
- package/Components/ComponentResolver/__tests__/componentResolver.test.js +11 -9
- package/Components/DisplayState/__tests__/__snapshots__/displayState.test.js.snap +2 -2
- package/Components/Focusable/FocusableTvOS.tsx +1 -1
- package/Components/Focusable/Touchable.tsx +19 -20
- package/Components/FocusableList/index.tsx +0 -1
- package/Components/GeneralContentScreen/utils/__tests__/useCurationAPI.test.js +9 -0
- package/Components/GeneralContentScreen/utils/useCurationAPI.ts +1 -1
- package/Components/Layout/TV/__tests__/ScreenContainer.test.tsx +1 -0
- package/Components/Layout/TV/__tests__/__snapshots__/LayoutContainer.test.tsx.snap +1 -1
- package/Components/Layout/TV/__tests__/__snapshots__/NavBarContainer.test.tsx.snap +3 -3
- package/Components/Layout/TV/__tests__/__snapshots__/ScreenContainer.test.tsx.snap +9 -9
- package/Components/Layout/TV/__tests__/__snapshots__/index.test.tsx.snap +1 -1
- package/Components/Layout/TV/__tests__/index.test.tsx +7 -3
- package/Components/MasterCell/DefaultComponents/BorderContainerView/__tests__/index.test.tsx +66 -0
- package/Components/MasterCell/DefaultComponents/BorderContainerView/index.tsx +4 -1
- package/Components/MasterCell/DefaultComponents/Image/Image.ios.tsx +6 -12
- package/Components/MasterCell/DefaultComponents/ImageBorderContainer/__tests__/index.test.ts +93 -0
- package/Components/MasterCell/DefaultComponents/SecondaryImage/__tests__/__snapshots__/Image.test.tsx.snap +3 -3
- package/Components/MasterCell/DefaultComponents/SecondaryImage/utils.ts +1 -1
- package/Components/MasterCell/DefaultComponents/__tests__/image.test.js +1 -1
- package/Components/MasterCell/SharedUI/CollapsibleTextContainer/__tests__/__snapshots__/index.test.tsx.snap +1 -1
- package/Components/MasterCell/__tests__/__snapshots__/dataAdapter.test.js.snap +180 -180
- package/Components/MasterCell/__tests__/__snapshots__/elementMapper.test.js.snap +7 -7
- package/Components/MasterCell/__tests__/__snapshots__/masterCell.test.js.snap +34 -45
- package/Components/MasterCell/elementMapper.tsx +12 -1
- package/Components/MasterCell/hooks/useAsyncRendering/index.ts +2 -2
- package/Components/MasterCell/index.tsx +84 -18
- package/Components/MasterCell/utils/index.ts +1 -1
- package/Components/OfflineHandler/__tests__/__snapshots__/index.test.tsx.snap +7 -7
- package/Components/OfflineHandler/__tests__/index.test.tsx +28 -25
- package/Components/PlayerContainer/PlayerContainer.tsx +5 -11
- package/Components/PlayerContainer/PlayerContainerContext.tsx +9 -0
- package/Components/River/RefreshControl.tsx +1 -1
- package/Components/River/__tests__/__snapshots__/componentsMap.test.js.snap +17 -17
- package/Components/River/__tests__/__snapshots__/river.test.js.snap +12 -12
- package/Components/River/__tests__/componentsMap.test.js +61 -13
- package/Components/RouteManager/__tests__/__snapshots__/routeManager.test.js.snap +1 -1
- package/Components/RouteManager/__tests__/__snapshots__/testId.test.js.snap +1 -1
- package/Components/Screen/__tests__/Screen.test.tsx +41 -27
- package/Components/Screen/__tests__/__snapshots__/Screen.test.tsx.snap +4 -4
- package/Components/ScreenResolver/__tests__/__snapshots__/screenResolver.test.js.snap +2 -2
- package/Components/ScreenResolver/__tests__/screenResolver.test.js +31 -27
- package/Components/Tabs/Tab.tsx +7 -6
- package/Components/TextInputTv/__tests__/TextInputTv.test.js +42 -42
- package/Components/TextInputTv/__tests__/__snapshots__/TextInputTv.test.js.snap +7 -0
- package/Components/TextInputTv/index.tsx +4 -4
- package/Components/Touchable/__tests__/__snapshots__/touchable.test.tsx.snap +2 -2
- package/Components/Transitioner/AnimationManager.js +8 -8
- package/Components/Transitioner/__tests__/__snapshots__/AnimationManager.test.js.snap +26 -26
- package/Components/Transitioner/__tests__/__snapshots__/Scene.test.js.snap +9 -9
- package/Components/Transitioner/__tests__/__snapshots__/config.test.js.snap +20 -20
- package/Components/Transitioner/__tests__/__snapshots__/transitioner.test.js.snap +2 -2
- package/Components/VideoLive/LiveImageManager.ts +27 -1
- package/Components/VideoLive/PlayerLiveImageComponent.tsx +18 -16
- package/Components/VideoLive/__tests__/PlayerLiveImageComponent.test.tsx +63 -8
- package/Components/VideoLive/__tests__/__snapshots__/PlayerLiveImageComponent.test.tsx.snap +5 -10
- package/Components/VideoModal/ModalAnimation/AnimatedScrollModal.tsx +5 -1
- package/Components/VideoModal/ModalAnimation/AnimatedVideoPlayerComponent.tsx +5 -1
- package/Components/VideoModal/ModalAnimation/AnimationComponent.tsx +8 -7
- package/Components/VideoModal/ModalAnimation/ModalAnimationContext.tsx +4 -10
- package/Components/VideoModal/ModalAnimation/index.ts +2 -1
- package/Components/VideoModal/ModalAnimation/useModalAnimationContext.ts +6 -0
- package/Components/VideoModal/ModalAnimation/utils.ts +2 -2
- package/Components/VideoModal/OpaqueLayer.tsx +33 -0
- package/Components/VideoModal/PlayerWrapper.tsx +16 -35
- package/Components/VideoModal/VideoModal.tsx +14 -23
- package/Components/VideoModal/__tests__/PlayerDetails.test.tsx +5 -2
- package/Components/VideoModal/__tests__/PlayerWrapper.test.tsx +13 -10
- package/Components/VideoModal/__tests__/__snapshots__/PlayerDetails.test.tsx.snap +4 -4
- package/Components/VideoModal/__tests__/__snapshots__/PlayerWrapper.test.tsx.snap +66 -156
- package/Components/VideoModal/hooks/__tests__/useDelayedPlayerDetails.test.ts +89 -0
- package/Components/VideoModal/hooks/index.ts +7 -0
- package/Components/VideoModal/hooks/useDelayedPlayerDetails.ts +49 -0
- package/Components/VideoModal/hooks/utils/__tests__/showDetails.test.ts +91 -0
- package/Components/VideoModal/hooks/utils/index.ts +33 -0
- package/Components/VideoModal/utils.ts +3 -5
- package/Components/Viewport/ViewportAware/__tests__/__snapshots__/viewportAware.test.js.snap +2 -2
- package/Components/Viewport/ViewportTracker/__tests__/__snapshots__/viewportTracker.test.js.snap +1 -1
- package/Components/ZappUIComponent/__tests__/__snapshots__/ZappUIComponent.test.js.snap +11 -11
- package/Components/default-cell-renderer/__tests__/__snapshots__/defaultCellRenderer.test.tsx.snap +30 -62
- package/Contexts/ConfigutaionContext/__tests__/__snapshots__/ConfigurationProvider.test.tsx.snap +1 -1
- package/Contexts/ScreenContext/index.tsx +3 -2
- package/Decorators/Navigator/__tests__/__snapshots__/navigator.test.js.snap +2 -2
- package/Decorators/RiverFeedLoader/__tests__/__snapshots__/riverFeedLoader.test.tsx.snap +77 -77
- package/Decorators/RiverFeedLoader/__tests__/riverFeedLoader.test.tsx +34 -39
- package/Decorators/RiverFeedLoader/__tests__/utils.test.ts +0 -9
- package/Decorators/RiverFeedLoader/index.tsx +1 -1
- package/Decorators/RiverFeedLoader/utils/getDatasourceUrl.ts +39 -0
- package/Decorators/RiverFeedLoader/utils/index.ts +29 -0
- package/Decorators/RiverFeedLoader/utils/usePipesContexts.ts +40 -0
- package/Decorators/RiverResolver/__tests__/__snapshots__/riverResolver.test.tsx.snap +5 -5
- package/Decorators/RiverResolver/__tests__/riverResolver.test.tsx +16 -10
- package/Decorators/ZappPipesDataConnector/__tests__/Hero.js +1 -1
- package/Decorators/ZappPipesDataConnector/index.tsx +32 -2
- package/package.json +12 -6
- package/Decorators/RiverFeedLoader/utils.ts +0 -100
|
@@ -35,3 +35,36 @@ export const orientationWasChangedFromPortraitToLandscape = ({
|
|
|
35
35
|
isOrientationLandscape(toOrientation)
|
|
36
36
|
);
|
|
37
37
|
};
|
|
38
|
+
|
|
39
|
+
export const showDetails = ({
|
|
40
|
+
isMobile,
|
|
41
|
+
isInline,
|
|
42
|
+
isDocked,
|
|
43
|
+
isPip,
|
|
44
|
+
}: {
|
|
45
|
+
isMobile: boolean;
|
|
46
|
+
isInline: boolean;
|
|
47
|
+
isDocked: boolean;
|
|
48
|
+
isPip: boolean;
|
|
49
|
+
}): boolean => {
|
|
50
|
+
if (isPip) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (isDocked) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// for mobile with inline mode(rotation is portrait) we always show details.
|
|
59
|
+
if (isMobile && isInline) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// for mobile with landscape rotation(player is fullscreen) we always hide details. Mounting of it is very heavy operation.
|
|
64
|
+
if (isMobile && !isInline) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// for tablets we always show details
|
|
69
|
+
return true;
|
|
70
|
+
};
|
|
@@ -2,10 +2,8 @@ import * as R from "ramda";
|
|
|
2
2
|
|
|
3
3
|
import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
4
4
|
import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
useIsTablet,
|
|
8
|
-
} from "@applicaster/zapp-react-native-utils/reactHooks";
|
|
5
|
+
import { useNavigation } from "@applicaster/zapp-react-native-utils/reactHooks/navigation/useNavigation";
|
|
6
|
+
import { useIsTablet } from "@applicaster/zapp-react-native-utils/reactHooks/device/useIsTablet";
|
|
9
7
|
import { playerManager } from "@applicaster/zapp-react-native-utils/appUtils";
|
|
10
8
|
|
|
11
9
|
export const useConfiguration = () => {
|
|
@@ -54,7 +52,7 @@ const fullSize = {
|
|
|
54
52
|
height: "100%",
|
|
55
53
|
};
|
|
56
54
|
|
|
57
|
-
export const
|
|
55
|
+
export const playerDimensionsHack = platformSelect({
|
|
58
56
|
android_tv: fullSize,
|
|
59
57
|
amazon: fullSize,
|
|
60
58
|
lg_tv: fullSize,
|
package/Components/Viewport/ViewportAware/__tests__/__snapshots__/viewportAware.test.js.snap
CHANGED
|
@@ -50,7 +50,7 @@ exports[`<ViewportAware /> renders its children correctly 1`] = `
|
|
|
50
50
|
ViewportEvents {
|
|
51
51
|
"firesLastEventOnAdd": true,
|
|
52
52
|
"lastEvent": null,
|
|
53
|
-
"listeners":
|
|
53
|
+
"listeners": [],
|
|
54
54
|
"notify": [Function],
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -60,7 +60,7 @@ exports[`<ViewportAware /> renders its children correctly 1`] = `
|
|
|
60
60
|
ViewportEvents {
|
|
61
61
|
"firesLastEventOnAdd": true,
|
|
62
62
|
"lastEvent": null,
|
|
63
|
-
"listeners":
|
|
63
|
+
"listeners": [],
|
|
64
64
|
"notify": [Function],
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`ZappUIComponent when zapp pipes data is loading renders correctly otherwise 1`] = `
|
|
4
4
|
<ContextProvider
|
|
5
5
|
value={
|
|
6
|
-
|
|
6
|
+
{
|
|
7
7
|
"parent": null,
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -12,7 +12,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders correctly other
|
|
|
12
12
|
onLoadFinished={[MockFunction]}
|
|
13
13
|
parent={null}
|
|
14
14
|
zappPipesData={
|
|
15
|
-
|
|
15
|
+
{
|
|
16
16
|
"loading": true,
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -23,7 +23,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders correctly other
|
|
|
23
23
|
exports[`ZappUIComponent when zapp pipes data is loading renders null if no loading component is provided 1`] = `
|
|
24
24
|
<ContextProvider
|
|
25
25
|
value={
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"parent": null,
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -32,7 +32,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders null if no load
|
|
|
32
32
|
onLoadFinished={[MockFunction]}
|
|
33
33
|
parent={null}
|
|
34
34
|
zappPipesData={
|
|
35
|
-
|
|
35
|
+
{
|
|
36
36
|
"loading": true,
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -43,7 +43,7 @@ exports[`ZappUIComponent when zapp pipes data is loading renders null if no load
|
|
|
43
43
|
exports[`ZappUIComponent when zapp pipes data returns properly renders correctly 1`] = `
|
|
44
44
|
<ContextProvider
|
|
45
45
|
value={
|
|
46
|
-
|
|
46
|
+
{
|
|
47
47
|
"parent": null,
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -52,9 +52,9 @@ exports[`ZappUIComponent when zapp pipes data returns properly renders correctly
|
|
|
52
52
|
onLoadFinished={[MockFunction]}
|
|
53
53
|
parent={null}
|
|
54
54
|
zappPipesData={
|
|
55
|
-
|
|
56
|
-
"data":
|
|
57
|
-
"type":
|
|
55
|
+
{
|
|
56
|
+
"data": {
|
|
57
|
+
"type": {
|
|
58
58
|
"value": "feed",
|
|
59
59
|
},
|
|
60
60
|
},
|
|
@@ -68,7 +68,7 @@ exports[`ZappUIComponent when zapp pipes data returns properly renders correctly
|
|
|
68
68
|
exports[`ZappUIComponent whenn zapp pipes data returns with error renders correctly otherwise 1`] = `
|
|
69
69
|
<ContextProvider
|
|
70
70
|
value={
|
|
71
|
-
|
|
71
|
+
{
|
|
72
72
|
"parent": null,
|
|
73
73
|
}
|
|
74
74
|
}
|
|
@@ -77,8 +77,8 @@ exports[`ZappUIComponent whenn zapp pipes data returns with error renders correc
|
|
|
77
77
|
onLoadFinished={[MockFunction]}
|
|
78
78
|
parent={null}
|
|
79
79
|
zappPipesData={
|
|
80
|
-
|
|
81
|
-
"error":
|
|
80
|
+
{
|
|
81
|
+
"error": {
|
|
82
82
|
"message": "oups",
|
|
83
83
|
},
|
|
84
84
|
"loading": false,
|
package/Components/default-cell-renderer/__tests__/__snapshots__/defaultCellRenderer.test.tsx.snap
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports[`DefaultCellRenderer returns a react component and it renders correctly 1`] = `
|
|
4
4
|
<View
|
|
5
5
|
style={
|
|
6
|
-
|
|
6
|
+
{
|
|
7
7
|
"alignItems": "flex-start",
|
|
8
8
|
"flex": 1,
|
|
9
9
|
}
|
|
@@ -12,10 +12,8 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
12
12
|
<View
|
|
13
13
|
cellUUID="mocked-uuid"
|
|
14
14
|
key="0"
|
|
15
|
-
skipButtons={false}
|
|
16
|
-
store={null}
|
|
17
15
|
style={
|
|
18
|
-
|
|
16
|
+
{
|
|
19
17
|
"backgroundColor": "transparent",
|
|
20
18
|
"margin": 12,
|
|
21
19
|
"opacity": 1,
|
|
@@ -23,7 +21,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
23
|
wrapperRef={
|
|
26
|
-
|
|
24
|
+
{
|
|
27
25
|
"current": null,
|
|
28
26
|
}
|
|
29
27
|
}
|
|
@@ -31,9 +29,8 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
31
29
|
<ImageContainer
|
|
32
30
|
cellUUID="mocked-uuid"
|
|
33
31
|
key="0"
|
|
34
|
-
skipButtons={false}
|
|
35
32
|
style={
|
|
36
|
-
|
|
33
|
+
{
|
|
37
34
|
"borderRadius": 3,
|
|
38
35
|
"height": 80,
|
|
39
36
|
"width": 169,
|
|
@@ -43,10 +40,8 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
43
40
|
<View
|
|
44
41
|
cellUUID="mocked-uuid"
|
|
45
42
|
key="1"
|
|
46
|
-
skipButtons={false}
|
|
47
|
-
store={null}
|
|
48
43
|
wrapperRef={
|
|
49
|
-
|
|
44
|
+
{
|
|
50
45
|
"current": null,
|
|
51
46
|
}
|
|
52
47
|
}
|
|
@@ -56,9 +51,8 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
56
51
|
key="0"
|
|
57
52
|
label=""
|
|
58
53
|
numberOfLines={2}
|
|
59
|
-
skipButtons={false}
|
|
60
54
|
style={
|
|
61
|
-
|
|
55
|
+
{
|
|
62
56
|
"color": "#000",
|
|
63
57
|
"fontFamily": "HelveticaNeue-Light",
|
|
64
58
|
"fontSize": 16,
|
|
@@ -74,7 +68,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
74
68
|
exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
75
69
|
<View
|
|
76
70
|
style={
|
|
77
|
-
|
|
71
|
+
{
|
|
78
72
|
"flex": 1,
|
|
79
73
|
"width": 429,
|
|
80
74
|
}
|
|
@@ -83,17 +77,15 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
83
77
|
<View
|
|
84
78
|
cellUUID="mocked-uuid"
|
|
85
79
|
key="0"
|
|
86
|
-
skipButtons={false}
|
|
87
|
-
store={null}
|
|
88
80
|
style={
|
|
89
|
-
|
|
81
|
+
{
|
|
90
82
|
"aspectRatio": 0.880733945,
|
|
91
83
|
"flex": 1,
|
|
92
84
|
"padding": 10,
|
|
93
85
|
}
|
|
94
86
|
}
|
|
95
87
|
wrapperRef={
|
|
96
|
-
|
|
88
|
+
{
|
|
97
89
|
"current": null,
|
|
98
90
|
}
|
|
99
91
|
}
|
|
@@ -101,10 +93,8 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
101
93
|
<View
|
|
102
94
|
cellUUID="mocked-uuid"
|
|
103
95
|
key="0"
|
|
104
|
-
skipButtons={false}
|
|
105
|
-
store={null}
|
|
106
96
|
style={
|
|
107
|
-
|
|
97
|
+
{
|
|
108
98
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
109
99
|
"borderRadius": 4,
|
|
110
100
|
"flex": 1,
|
|
@@ -112,7 +102,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
112
102
|
}
|
|
113
103
|
}
|
|
114
104
|
wrapperRef={
|
|
115
|
-
|
|
105
|
+
{
|
|
116
106
|
"current": null,
|
|
117
107
|
}
|
|
118
108
|
}
|
|
@@ -120,10 +110,8 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
120
110
|
<View
|
|
121
111
|
cellUUID="mocked-uuid"
|
|
122
112
|
key="0"
|
|
123
|
-
skipButtons={false}
|
|
124
|
-
store={null}
|
|
125
113
|
wrapperRef={
|
|
126
|
-
|
|
114
|
+
{
|
|
127
115
|
"current": null,
|
|
128
116
|
}
|
|
129
117
|
}
|
|
@@ -131,9 +119,8 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
131
119
|
<ImageContainer
|
|
132
120
|
cellUUID="mocked-uuid"
|
|
133
121
|
key="0"
|
|
134
|
-
skipButtons={false}
|
|
135
122
|
style={
|
|
136
|
-
|
|
123
|
+
{
|
|
137
124
|
"aspectRatio": 1.7782608696,
|
|
138
125
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
139
126
|
}
|
|
@@ -142,10 +129,8 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
142
129
|
<View
|
|
143
130
|
cellUUID="mocked-uuid"
|
|
144
131
|
key="1"
|
|
145
|
-
skipButtons={false}
|
|
146
|
-
store={null}
|
|
147
132
|
wrapperRef={
|
|
148
|
-
|
|
133
|
+
{
|
|
149
134
|
"current": null,
|
|
150
135
|
}
|
|
151
136
|
}
|
|
@@ -154,9 +139,8 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
154
139
|
key="0"
|
|
155
140
|
label=""
|
|
156
141
|
numberOfLines={2}
|
|
157
|
-
skipButtons={false}
|
|
158
142
|
style={
|
|
159
|
-
|
|
143
|
+
{
|
|
160
144
|
"color": "rgba(239,239,239,1.0)",
|
|
161
145
|
"fontSize": 26,
|
|
162
146
|
"fontWeight": "700",
|
|
@@ -170,16 +154,14 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
170
154
|
<View
|
|
171
155
|
cellUUID="mocked-uuid"
|
|
172
156
|
key="2"
|
|
173
|
-
skipButtons={false}
|
|
174
|
-
store={null}
|
|
175
157
|
style={
|
|
176
|
-
|
|
158
|
+
{
|
|
177
159
|
"paddingHorizontal": "6%",
|
|
178
160
|
"paddingTop": "3%",
|
|
179
161
|
}
|
|
180
162
|
}
|
|
181
163
|
wrapperRef={
|
|
182
|
-
|
|
164
|
+
{
|
|
183
165
|
"current": null,
|
|
184
166
|
}
|
|
185
167
|
}
|
|
@@ -188,9 +170,8 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
188
170
|
key="0"
|
|
189
171
|
label=""
|
|
190
172
|
numberOfLines={1}
|
|
191
|
-
skipButtons={false}
|
|
192
173
|
style={
|
|
193
|
-
|
|
174
|
+
{
|
|
194
175
|
"color": "rgba(239,239,239,1.0)",
|
|
195
176
|
"fontSize": 24,
|
|
196
177
|
"fontWeight": "400",
|
|
@@ -207,7 +188,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
207
188
|
exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
208
189
|
<View
|
|
209
190
|
style={
|
|
210
|
-
|
|
191
|
+
{
|
|
211
192
|
"flex": 1,
|
|
212
193
|
"width": 429,
|
|
213
194
|
}
|
|
@@ -216,17 +197,15 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
216
197
|
<View
|
|
217
198
|
cellUUID="mocked-uuid"
|
|
218
199
|
key="0"
|
|
219
|
-
skipButtons={false}
|
|
220
|
-
store={null}
|
|
221
200
|
style={
|
|
222
|
-
|
|
201
|
+
{
|
|
223
202
|
"aspectRatio": 0.880733945,
|
|
224
203
|
"flex": 1,
|
|
225
204
|
"padding": 10,
|
|
226
205
|
}
|
|
227
206
|
}
|
|
228
207
|
wrapperRef={
|
|
229
|
-
|
|
208
|
+
{
|
|
230
209
|
"current": null,
|
|
231
210
|
}
|
|
232
211
|
}
|
|
@@ -234,10 +213,8 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
234
213
|
<View
|
|
235
214
|
cellUUID="mocked-uuid"
|
|
236
215
|
key="0"
|
|
237
|
-
skipButtons={false}
|
|
238
|
-
store={null}
|
|
239
216
|
style={
|
|
240
|
-
|
|
217
|
+
{
|
|
241
218
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
242
219
|
"borderRadius": 4,
|
|
243
220
|
"flex": 1,
|
|
@@ -245,7 +222,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
245
222
|
}
|
|
246
223
|
}
|
|
247
224
|
wrapperRef={
|
|
248
|
-
|
|
225
|
+
{
|
|
249
226
|
"current": null,
|
|
250
227
|
}
|
|
251
228
|
}
|
|
@@ -253,10 +230,8 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
253
230
|
<View
|
|
254
231
|
cellUUID="mocked-uuid"
|
|
255
232
|
key="0"
|
|
256
|
-
skipButtons={false}
|
|
257
|
-
store={null}
|
|
258
233
|
wrapperRef={
|
|
259
|
-
|
|
234
|
+
{
|
|
260
235
|
"current": null,
|
|
261
236
|
}
|
|
262
237
|
}
|
|
@@ -264,9 +239,8 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
264
239
|
<ImageContainer
|
|
265
240
|
cellUUID="mocked-uuid"
|
|
266
241
|
key="0"
|
|
267
|
-
skipButtons={false}
|
|
268
242
|
style={
|
|
269
|
-
|
|
243
|
+
{
|
|
270
244
|
"aspectRatio": 1.7782608696,
|
|
271
245
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
272
246
|
}
|
|
@@ -275,10 +249,8 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
275
249
|
<View
|
|
276
250
|
cellUUID="mocked-uuid"
|
|
277
251
|
key="1"
|
|
278
|
-
skipButtons={false}
|
|
279
|
-
store={null}
|
|
280
252
|
wrapperRef={
|
|
281
|
-
|
|
253
|
+
{
|
|
282
254
|
"current": null,
|
|
283
255
|
}
|
|
284
256
|
}
|
|
@@ -287,9 +259,8 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
287
259
|
key="0"
|
|
288
260
|
label=""
|
|
289
261
|
numberOfLines={2}
|
|
290
|
-
skipButtons={false}
|
|
291
262
|
style={
|
|
292
|
-
|
|
263
|
+
{
|
|
293
264
|
"color": "rgba(239,239,239,1.0)",
|
|
294
265
|
"fontSize": 26,
|
|
295
266
|
"fontWeight": "700",
|
|
@@ -303,16 +274,14 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
303
274
|
<View
|
|
304
275
|
cellUUID="mocked-uuid"
|
|
305
276
|
key="2"
|
|
306
|
-
skipButtons={false}
|
|
307
|
-
store={null}
|
|
308
277
|
style={
|
|
309
|
-
|
|
278
|
+
{
|
|
310
279
|
"paddingHorizontal": "6%",
|
|
311
280
|
"paddingTop": "3%",
|
|
312
281
|
}
|
|
313
282
|
}
|
|
314
283
|
wrapperRef={
|
|
315
|
-
|
|
284
|
+
{
|
|
316
285
|
"current": null,
|
|
317
286
|
}
|
|
318
287
|
}
|
|
@@ -321,9 +290,8 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
321
290
|
key="0"
|
|
322
291
|
label=""
|
|
323
292
|
numberOfLines={1}
|
|
324
|
-
skipButtons={false}
|
|
325
293
|
style={
|
|
326
|
-
|
|
294
|
+
{
|
|
327
295
|
"color": "rgba(239,239,239,1.0)",
|
|
328
296
|
"fontSize": 24,
|
|
329
297
|
"fontWeight": "400",
|
|
@@ -99,8 +99,9 @@ export function ScreenContextProvider({
|
|
|
99
99
|
const isNested = useNestedNavigationContext();
|
|
100
100
|
const currentScreenScreenData = useCurrentScreenData();
|
|
101
101
|
|
|
102
|
-
const screenNavBarStateRef =
|
|
103
|
-
|
|
102
|
+
const screenNavBarStateRef = useRef<null | ReturnType<typeof createStore>>(
|
|
103
|
+
null
|
|
104
|
+
);
|
|
104
105
|
|
|
105
106
|
const getScreenNavBarState = useCallback(() => {
|
|
106
107
|
if (screenNavBarStateRef.current !== null) {
|