@applicaster/zapp-react-native-ui-components 12.0.0-rc.12 → 12.0.0-rc.14

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.
@@ -1,3 +1,3 @@
1
- import FastImage from "react-native-fast-image";
1
+ import FastImage from "@applicaster/react-native-fast-image";
2
2
 
3
3
  export default FastImage;
@@ -379,7 +379,9 @@ export class LiveImageManager implements PlayerLifecycleListener {
379
379
  onLiveImageError = (item: LiveImage, error: Error) => {
380
380
  item.setMode(LiveImageType.Image);
381
381
 
382
- if (this.currentlyPlaying === item) {
382
+ const currentItem = this.currentlyPlaying;
383
+
384
+ if (currentItem === item) {
383
385
  this.currentlyPlaying = null;
384
386
  // TODO: ...Maybe player some other item
385
387
  }
@@ -389,8 +391,8 @@ export class LiveImageManager implements PlayerLifecycleListener {
389
391
  event: {
390
392
  item,
391
393
  error,
392
- playerId: this.currentlyPlaying?.playerId,
393
- primaryPlayerId: this.primaryPlayer?.playerId,
394
+ playerId: currentItem?.playerId,
395
+ primaryPlayerId: currentItem?.playerId,
394
396
  },
395
397
  });
396
398
  };
@@ -33,6 +33,7 @@ type Props = {
33
33
  containerStyle?: ViewStyle;
34
34
  inline?: boolean;
35
35
  docked?: boolean;
36
+ pip?: boolean;
36
37
  isModal?: boolean;
37
38
  fullscreen?: boolean;
38
39
  isTabletPortrait?: boolean;
@@ -135,6 +136,7 @@ export const PlayerWrapper = (props: Props) => {
135
136
  children,
136
137
  isTabletPortrait,
137
138
  configuration,
139
+ pip,
138
140
  } = props;
139
141
 
140
142
  const isTablet = useIsTablet();
@@ -158,7 +160,7 @@ export const PlayerWrapper = (props: Props) => {
158
160
  () => ({
159
161
  ...baseDimensions,
160
162
  width: isInlineModal && docked ? undefined : baseDimensions.width,
161
- aspectRatio: !isInlineModal ? getScreenAspectRatio() : 16 / 9,
163
+ aspectRatio: !isInlineModal && !pip ? getScreenAspectRatio() : 16 / 9,
162
164
  }),
163
165
  [baseDimensions, isInlineModal]
164
166
  );
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.12",
3
+ "version": "12.0.0-rc.14",
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.12",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.12",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.12",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.12",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.14",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.14",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.14",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.14",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",