@applicaster/zapp-react-native-ui-components 13.0.0-alpha.5033140607 → 13.0.0-alpha.5330008750
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 +66 -29
- package/Components/Cell/Cell.tsx +14 -9
- package/Components/Cell/CellWithFocusable.tsx +1 -1
- package/Components/Cell/TvOSCellComponent.tsx +3 -8
- 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/Focusable.tsx +0 -54
- 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 +76 -7
- package/Components/GeneralContentScreen/utils/useCurationAPI.ts +53 -9
- 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 -34
- package/Components/MasterCell/hooks/useAsyncRendering/index.ts +2 -2
- package/Components/MasterCell/utils/index.ts +1 -1
- package/Components/NativeFocusables/{index.js → index.ts} +4 -2
- 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 -30
- package/Contexts/ConfigutaionContext/__tests__/__snapshots__/ConfigurationProvider.test.tsx.snap +1 -1
- package/Contexts/ScreenContext/index.tsx +3 -2
- package/Decorators/Analytics/{index.js → index.tsx} +11 -11
- 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
|
}
|
|
@@ -15,7 +15,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
15
15
|
skipButtons={false}
|
|
16
16
|
store={null}
|
|
17
17
|
style={
|
|
18
|
-
|
|
18
|
+
{
|
|
19
19
|
"backgroundColor": "transparent",
|
|
20
20
|
"margin": 12,
|
|
21
21
|
"opacity": 1,
|
|
@@ -23,7 +23,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
wrapperRef={
|
|
26
|
-
|
|
26
|
+
{
|
|
27
27
|
"current": null,
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -33,7 +33,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
33
33
|
key="0"
|
|
34
34
|
skipButtons={false}
|
|
35
35
|
style={
|
|
36
|
-
|
|
36
|
+
{
|
|
37
37
|
"borderRadius": 3,
|
|
38
38
|
"height": 80,
|
|
39
39
|
"width": 169,
|
|
@@ -46,7 +46,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
46
46
|
skipButtons={false}
|
|
47
47
|
store={null}
|
|
48
48
|
wrapperRef={
|
|
49
|
-
|
|
49
|
+
{
|
|
50
50
|
"current": null,
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -58,7 +58,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
58
58
|
numberOfLines={2}
|
|
59
59
|
skipButtons={false}
|
|
60
60
|
style={
|
|
61
|
-
|
|
61
|
+
{
|
|
62
62
|
"color": "#000",
|
|
63
63
|
"fontFamily": "HelveticaNeue-Light",
|
|
64
64
|
"fontSize": 16,
|
|
@@ -74,7 +74,7 @@ exports[`DefaultCellRenderer returns a react component and it renders correctly
|
|
|
74
74
|
exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
75
75
|
<View
|
|
76
76
|
style={
|
|
77
|
-
|
|
77
|
+
{
|
|
78
78
|
"flex": 1,
|
|
79
79
|
"width": 429,
|
|
80
80
|
}
|
|
@@ -86,14 +86,14 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
86
86
|
skipButtons={false}
|
|
87
87
|
store={null}
|
|
88
88
|
style={
|
|
89
|
-
|
|
89
|
+
{
|
|
90
90
|
"aspectRatio": 0.880733945,
|
|
91
91
|
"flex": 1,
|
|
92
92
|
"padding": 10,
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
wrapperRef={
|
|
96
|
-
|
|
96
|
+
{
|
|
97
97
|
"current": null,
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -104,7 +104,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
104
104
|
skipButtons={false}
|
|
105
105
|
store={null}
|
|
106
106
|
style={
|
|
107
|
-
|
|
107
|
+
{
|
|
108
108
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
109
109
|
"borderRadius": 4,
|
|
110
110
|
"flex": 1,
|
|
@@ -112,7 +112,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
wrapperRef={
|
|
115
|
-
|
|
115
|
+
{
|
|
116
116
|
"current": null,
|
|
117
117
|
}
|
|
118
118
|
}
|
|
@@ -123,7 +123,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
123
123
|
skipButtons={false}
|
|
124
124
|
store={null}
|
|
125
125
|
wrapperRef={
|
|
126
|
-
|
|
126
|
+
{
|
|
127
127
|
"current": null,
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -133,7 +133,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
133
133
|
key="0"
|
|
134
134
|
skipButtons={false}
|
|
135
135
|
style={
|
|
136
|
-
|
|
136
|
+
{
|
|
137
137
|
"aspectRatio": 1.7782608696,
|
|
138
138
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
139
139
|
}
|
|
@@ -145,7 +145,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
145
145
|
skipButtons={false}
|
|
146
146
|
store={null}
|
|
147
147
|
wrapperRef={
|
|
148
|
-
|
|
148
|
+
{
|
|
149
149
|
"current": null,
|
|
150
150
|
}
|
|
151
151
|
}
|
|
@@ -156,7 +156,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
156
156
|
numberOfLines={2}
|
|
157
157
|
skipButtons={false}
|
|
158
158
|
style={
|
|
159
|
-
|
|
159
|
+
{
|
|
160
160
|
"color": "rgba(239,239,239,1.0)",
|
|
161
161
|
"fontSize": 26,
|
|
162
162
|
"fontWeight": "700",
|
|
@@ -173,13 +173,13 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
173
173
|
skipButtons={false}
|
|
174
174
|
store={null}
|
|
175
175
|
style={
|
|
176
|
-
|
|
176
|
+
{
|
|
177
177
|
"paddingHorizontal": "6%",
|
|
178
178
|
"paddingTop": "3%",
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
wrapperRef={
|
|
182
|
-
|
|
182
|
+
{
|
|
183
183
|
"current": null,
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -190,7 +190,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
190
190
|
numberOfLines={1}
|
|
191
191
|
skipButtons={false}
|
|
192
192
|
style={
|
|
193
|
-
|
|
193
|
+
{
|
|
194
194
|
"color": "rgba(239,239,239,1.0)",
|
|
195
195
|
"fontSize": 24,
|
|
196
196
|
"fontWeight": "400",
|
|
@@ -207,7 +207,7 @@ exports[`DefaultCellRenderer returns a react component for LG TVs 1`] = `
|
|
|
207
207
|
exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
208
208
|
<View
|
|
209
209
|
style={
|
|
210
|
-
|
|
210
|
+
{
|
|
211
211
|
"flex": 1,
|
|
212
212
|
"width": 429,
|
|
213
213
|
}
|
|
@@ -219,14 +219,14 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
219
219
|
skipButtons={false}
|
|
220
220
|
store={null}
|
|
221
221
|
style={
|
|
222
|
-
|
|
222
|
+
{
|
|
223
223
|
"aspectRatio": 0.880733945,
|
|
224
224
|
"flex": 1,
|
|
225
225
|
"padding": 10,
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
wrapperRef={
|
|
229
|
-
|
|
229
|
+
{
|
|
230
230
|
"current": null,
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -237,7 +237,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
237
237
|
skipButtons={false}
|
|
238
238
|
store={null}
|
|
239
239
|
style={
|
|
240
|
-
|
|
240
|
+
{
|
|
241
241
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
242
242
|
"borderRadius": 4,
|
|
243
243
|
"flex": 1,
|
|
@@ -245,7 +245,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
wrapperRef={
|
|
248
|
-
|
|
248
|
+
{
|
|
249
249
|
"current": null,
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -256,7 +256,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
256
256
|
skipButtons={false}
|
|
257
257
|
store={null}
|
|
258
258
|
wrapperRef={
|
|
259
|
-
|
|
259
|
+
{
|
|
260
260
|
"current": null,
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -266,7 +266,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
266
266
|
key="0"
|
|
267
267
|
skipButtons={false}
|
|
268
268
|
style={
|
|
269
|
-
|
|
269
|
+
{
|
|
270
270
|
"aspectRatio": 1.7782608696,
|
|
271
271
|
"backgroundColor": "rgba(47,47,47,1.0)",
|
|
272
272
|
}
|
|
@@ -278,7 +278,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
278
278
|
skipButtons={false}
|
|
279
279
|
store={null}
|
|
280
280
|
wrapperRef={
|
|
281
|
-
|
|
281
|
+
{
|
|
282
282
|
"current": null,
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -289,7 +289,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
289
289
|
numberOfLines={2}
|
|
290
290
|
skipButtons={false}
|
|
291
291
|
style={
|
|
292
|
-
|
|
292
|
+
{
|
|
293
293
|
"color": "rgba(239,239,239,1.0)",
|
|
294
294
|
"fontSize": 26,
|
|
295
295
|
"fontWeight": "700",
|
|
@@ -306,13 +306,13 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
306
306
|
skipButtons={false}
|
|
307
307
|
store={null}
|
|
308
308
|
style={
|
|
309
|
-
|
|
309
|
+
{
|
|
310
310
|
"paddingHorizontal": "6%",
|
|
311
311
|
"paddingTop": "3%",
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
wrapperRef={
|
|
315
|
-
|
|
315
|
+
{
|
|
316
316
|
"current": null,
|
|
317
317
|
}
|
|
318
318
|
}
|
|
@@ -323,7 +323,7 @@ exports[`DefaultCellRenderer returns a react component for Samsung TVs 1`] = `
|
|
|
323
323
|
numberOfLines={1}
|
|
324
324
|
skipButtons={false}
|
|
325
325
|
style={
|
|
326
|
-
|
|
326
|
+
{
|
|
327
327
|
"color": "rgba(239,239,239,1.0)",
|
|
328
328
|
"fontSize": 24,
|
|
329
329
|
"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) {
|
|
@@ -5,18 +5,18 @@ import { usePickFromState } from "@applicaster/zapp-react-native-redux/hooks";
|
|
|
5
5
|
|
|
6
6
|
type ComponentProps = {
|
|
7
7
|
component: {
|
|
8
|
-
id: string
|
|
9
|
-
rules: { item_limit: number
|
|
10
|
-
component_type: string
|
|
8
|
+
id: string;
|
|
9
|
+
rules: { item_limit: number; component_cells_selectable: boolean };
|
|
10
|
+
component_type: string;
|
|
11
11
|
styles: {
|
|
12
|
-
cell_style: string
|
|
13
|
-
header: { visible: boolean }
|
|
14
|
-
component_cells_selectable: boolean
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
zappPipesData: { url: string
|
|
18
|
-
selected: boolean
|
|
19
|
-
assets: { menu_button: string }
|
|
12
|
+
cell_style: string;
|
|
13
|
+
header: { visible: boolean };
|
|
14
|
+
component_cells_selectable: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
zappPipesData: { url: string; data: { title: string } };
|
|
18
|
+
selected: boolean;
|
|
19
|
+
assets: { menu_button: string };
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
function withAnalytics(Component) {
|