@applicaster/zapp-react-native-ui-components 13.0.0-alpha.6525006318 → 13.0.0-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.
@@ -128,7 +128,7 @@ export function Screen(_props: Props) {
128
128
  <View style={style}>
129
129
  {navBarProps && <NavBar {...navBarProps} hasMenu={hasMenu} />}
130
130
 
131
- <OfflineFallbackScreen>
131
+ <OfflineFallbackScreen screenData={targetScreenData}>
132
132
  {/* @TODO RouteManager doesn't use props, can they be removed ? */}
133
133
  <RouteManager pathname={pathname} screenData={screenData} />
134
134
  </OfflineFallbackScreen>
@@ -121,16 +121,23 @@ const getTabletWidth = (
121
121
  return Number(width) - sidebarWidth;
122
122
  };
123
123
 
124
+ const getStyles = (baseStyle, isMobile, isPortrait) => {
125
+ if (isMobile && isPortrait) {
126
+ return { width: SCREEN_WIDTH, height: SCREEN_HEIGHT };
127
+ }
128
+
129
+ if (isMobile && !isPortrait) {
130
+ return { width: SCREEN_HEIGHT, height: SCREEN_WIDTH };
131
+ }
132
+
133
+ return baseStyle;
134
+ };
135
+
124
136
  const showDetails = (
125
137
  isMobile: boolean,
126
138
  docked: boolean,
127
- isInlineModal,
128
- pip
139
+ isInlineModal
129
140
  ): boolean => {
130
- if (pip) {
131
- return false;
132
- }
133
-
134
141
  if (!isInlineModal) {
135
142
  return false;
136
143
  }
@@ -152,7 +159,7 @@ const showDetails = (
152
159
  const PlayerWrapperComponent = (props: Props) => {
153
160
  const {
154
161
  entry,
155
- style,
162
+ style: baseStyle,
156
163
  containerStyle,
157
164
  inline,
158
165
  docked,
@@ -167,7 +174,7 @@ const PlayerWrapperComponent = (props: Props) => {
167
174
 
168
175
  const isInlineModal = inline && isModal;
169
176
 
170
- // const style = getStyles(baseStyle, !isTablet, isInlineModal, pip);
177
+ const style = getStyles(baseStyle, !isTablet, isInlineModal);
171
178
 
172
179
  const isTabletLandscape = !isTV() && isTablet && !isTabletPortrait;
173
180
 
@@ -246,7 +253,7 @@ const PlayerWrapperComponent = (props: Props) => {
246
253
  </View>
247
254
 
248
255
  <AnimatedScrollModal>
249
- {showDetails(!isTablet, docked, isInlineModal, pip) && (
256
+ {showDetails(!isTablet, docked, isInlineModal) && (
250
257
  <AnimationComponent
251
258
  animationType={ComponentAnimationType.componentFade}
252
259
  style={defaultStyles.flex}
@@ -27,8 +27,8 @@ exports[`PlayerWrapper renders inline 1`] = `
27
27
  "backgroundColor": "transparent",
28
28
  },
29
29
  Object {
30
- "height": 800,
31
- "width": 300,
30
+ "height": 1334,
31
+ "width": 750,
32
32
  },
33
33
  Object {},
34
34
  ]
@@ -133,8 +133,8 @@ exports[`PlayerWrapper renders inline and docked 1`] = `
133
133
  "backgroundColor": "transparent",
134
134
  },
135
135
  Object {
136
- "height": undefined,
137
- "width": 300,
136
+ "height": 1334,
137
+ "width": 750,
138
138
  },
139
139
  Object {},
140
140
  ]
@@ -361,8 +361,8 @@ exports[`PlayerWrapper renders properly 1`] = `
361
361
  "backgroundColor": "transparent",
362
362
  },
363
363
  Object {
364
- "height": 800,
365
- "width": 300,
364
+ "height": 750,
365
+ "width": 1334,
366
366
  },
367
367
  Object {},
368
368
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "13.0.0-alpha.6525006318",
3
+ "version": "13.0.0-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",
@@ -34,10 +34,10 @@
34
34
  "redux-mock-store": "^1.5.3"
35
35
  },
36
36
  "dependencies": {
37
- "@applicaster/applicaster-types": "13.0.0-alpha.6525006318",
38
- "@applicaster/zapp-react-native-bridge": "13.0.0-alpha.6525006318",
39
- "@applicaster/zapp-react-native-redux": "13.0.0-alpha.6525006318",
40
- "@applicaster/zapp-react-native-utils": "13.0.0-alpha.6525006318",
37
+ "@applicaster/applicaster-types": "13.0.0-rc.3",
38
+ "@applicaster/zapp-react-native-bridge": "13.0.0-rc.3",
39
+ "@applicaster/zapp-react-native-redux": "13.0.0-rc.3",
40
+ "@applicaster/zapp-react-native-utils": "13.0.0-rc.3",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",