@applicaster/zapp-react-native-ui-components 12.0.0-rc.143 → 12.0.0-rc.144

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.
@@ -121,7 +121,11 @@ const getTabletWidth = (
121
121
  return Number(width) - sidebarWidth;
122
122
  };
123
123
 
124
- const getStyles = (baseStyle, isMobile, isPortrait) => {
124
+ const getStyles = (baseStyle, isMobile, isPortrait, pip) => {
125
+ if (pip) {
126
+ return baseStyle;
127
+ }
128
+
125
129
  if (isMobile && isPortrait) {
126
130
  return { width: SCREEN_WIDTH, height: SCREEN_HEIGHT };
127
131
  }
@@ -136,8 +140,13 @@ const getStyles = (baseStyle, isMobile, isPortrait) => {
136
140
  const showDetails = (
137
141
  isMobile: boolean,
138
142
  docked: boolean,
139
- isInlineModal
143
+ isInlineModal,
144
+ pip
140
145
  ): boolean => {
146
+ if (pip) {
147
+ return false;
148
+ }
149
+
141
150
  if (!isInlineModal) {
142
151
  return false;
143
152
  }
@@ -174,7 +183,7 @@ const PlayerWrapperComponent = (props: Props) => {
174
183
 
175
184
  const isInlineModal = inline && isModal;
176
185
 
177
- const style = getStyles(baseStyle, !isTablet, isInlineModal);
186
+ const style = getStyles(baseStyle, !isTablet, isInlineModal, pip);
178
187
 
179
188
  const isTabletLandscape = !isTV() && isTablet && !isTabletPortrait;
180
189
 
@@ -253,7 +262,7 @@ const PlayerWrapperComponent = (props: Props) => {
253
262
  </View>
254
263
 
255
264
  <AnimatedScrollModal>
256
- {showDetails(!isTablet, docked, isInlineModal) && (
265
+ {showDetails(!isTablet, docked, isInlineModal, pip) && (
257
266
  <AnimationComponent
258
267
  animationType={ComponentAnimationType.componentFade}
259
268
  style={defaultStyles.flex}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.0-rc.143",
3
+ "version": "12.0.0-rc.144",
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": "12.0.0-rc.143",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.143",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.143",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.143",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.144",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.144",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.144",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.144",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",