@applicaster/zapp-react-native-ui-components 15.0.0-rc.45 → 15.0.0-rc.46
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.
|
@@ -40,6 +40,7 @@ type Props = {
|
|
|
40
40
|
component_type: string;
|
|
41
41
|
styles?: {
|
|
42
42
|
component_margin_top?: number;
|
|
43
|
+
component_padding_top?: number;
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
selected: boolean;
|
|
@@ -205,19 +206,25 @@ class TvOSCell extends React.Component<Props, State> {
|
|
|
205
206
|
) {
|
|
206
207
|
const { headerOffset } = getHeaderOffset();
|
|
207
208
|
|
|
208
|
-
const extraAnchorPointYOffset =
|
|
209
|
-
screenLayout?.extraAnchorPointYOffset
|
|
209
|
+
const extraAnchorPointYOffset = toNumberWithDefaultZero(
|
|
210
|
+
screenLayout?.extraAnchorPointYOffset
|
|
211
|
+
);
|
|
210
212
|
|
|
211
213
|
const componentMarginTop = toNumberWithDefaultZero(
|
|
212
214
|
component?.styles?.component_margin_top
|
|
213
215
|
);
|
|
214
216
|
|
|
217
|
+
const componentPaddingTop = toNumberWithDefaultZero(
|
|
218
|
+
component?.styles?.component_padding_top
|
|
219
|
+
);
|
|
220
|
+
|
|
215
221
|
const totalOffset =
|
|
216
222
|
headerOffset +
|
|
217
|
-
(componentAnchorPointY
|
|
223
|
+
toNumberWithDefaultZero(componentAnchorPointY) +
|
|
218
224
|
extraAnchorPointYOffset -
|
|
219
|
-
(componentsMapOffset
|
|
220
|
-
componentMarginTop
|
|
225
|
+
toNumberWithDefaultZero(componentsMapOffset) +
|
|
226
|
+
componentMarginTop +
|
|
227
|
+
componentPaddingTop;
|
|
221
228
|
|
|
222
229
|
mainOffsetUpdater?.(
|
|
223
230
|
{ tag: this.target },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.46",
|
|
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": "15.0.0-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "15.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "15.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "15.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "15.0.0-rc.46",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "15.0.0-rc.46",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "15.0.0-rc.46",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "15.0.0-rc.46",
|
|
35
35
|
"promise": "^8.3.0",
|
|
36
36
|
"url": "^0.11.0",
|
|
37
37
|
"uuid": "^3.3.2"
|