@applicaster/zapp-react-native-ui-components 15.1.17 → 15.1.18-alpha.1091413228

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.
@@ -32,6 +32,7 @@ const PlayerWrapperComponent = (props: Props) => {
32
32
  isTabletPortrait,
33
33
  configuration,
34
34
  pip,
35
+ vertical,
35
36
  playerContent,
36
37
  } = props;
37
38
 
@@ -42,6 +43,7 @@ const PlayerWrapperComponent = (props: Props) => {
42
43
  isTabletPortrait,
43
44
  configuration,
44
45
  pip,
46
+ vertical,
45
47
  });
46
48
 
47
49
  const isTablet = useIsTablet();
@@ -22,6 +22,7 @@ export const useStyle = ({
22
22
  isTabletPortrait,
23
23
  configuration,
24
24
  pip,
25
+ vertical,
25
26
  }) => {
26
27
  const isTablet = useIsTablet();
27
28
 
@@ -40,10 +41,14 @@ export const useStyle = ({
40
41
  );
41
42
 
42
43
  const aspectRatio = React.useMemo(
43
- () => calculateAspectRatio(isInlineModal, pip),
44
+ () => {
45
+ const value = calculateAspectRatio(isInlineModal, pip);
46
+
47
+ return vertical ? 1 / value : value;
48
+ },
44
49
  // ignoring insets - only initial needed
45
50
  // eslint-disable-next-line react-hooks/exhaustive-deps
46
- [isInlineModal, pip]
51
+ [isInlineModal, pip, vertical]
47
52
  );
48
53
 
49
54
  return React.useMemo(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "15.1.17",
3
+ "version": "15.1.18-alpha.1091413228",
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.1.17",
32
- "@applicaster/zapp-react-native-bridge": "15.1.17",
33
- "@applicaster/zapp-react-native-redux": "15.1.17",
34
- "@applicaster/zapp-react-native-utils": "15.1.17",
31
+ "@applicaster/applicaster-types": "15.1.18-alpha.1091413228",
32
+ "@applicaster/zapp-react-native-bridge": "15.1.18-alpha.1091413228",
33
+ "@applicaster/zapp-react-native-redux": "15.1.18-alpha.1091413228",
34
+ "@applicaster/zapp-react-native-utils": "15.1.18-alpha.1091413228",
35
35
  "fast-json-stable-stringify": "^2.1.0",
36
36
  "promise": "^8.3.0",
37
37
  "react-native-sortables": "1.7.1",