@applicaster/zapp-react-native-ui-components 12.0.0-rc.125 → 12.0.0-rc.126

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.
@@ -31,10 +31,10 @@ function Image({
31
31
 
32
32
  return (
33
33
  <RnImage
34
- defaultSource={placeholderImage || ""}
34
+ defaultSource={placeholderImage || null}
35
35
  style={style}
36
36
  source={updatedSource}
37
- {...R.omit(["source"], otherProps)}
37
+ {...R.omit(["source", "placeholderImage"], otherProps)}
38
38
  />
39
39
  );
40
40
  }
@@ -223,7 +223,8 @@ export const AnimatedScrollModalComponent = ({ children }: Props) => {
223
223
  (videoModalState.mode === "MAXIMIZED" &&
224
224
  videoModalState.previousMode === "MINIMIZED" &&
225
225
  previousItemId === videoModalState.item?.id) ||
226
- previousItemId !== videoModalState.item?.id
226
+ (previousItemId !== videoModalState.item?.id &&
227
+ videoModalState.mode !== "FULLSCREEN")
227
228
  ) {
228
229
  setPlayerAnimationState(PlayerAnimationStateEnum.maximaze);
229
230
  setTimeout(() => resetPlayerAnimationState());
@@ -60,7 +60,9 @@ export const AnimationView = ({
60
60
  const {
61
61
  width: screenWidth,
62
62
  deviceInfo: { isTablet, isTabletLandscape },
63
- } = useDimensions("window", { deviceInfo: true });
63
+ } = useDimensions("window", {
64
+ deviceInfo: true,
65
+ });
64
66
 
65
67
  const { videoModalState } = useNavigation();
66
68
  const insets = useSafeAreaInsets();
@@ -301,13 +303,18 @@ export const AnimationView = ({
301
303
  typeof additionalData.height === "number" && additionalData.height;
302
304
  }
303
305
 
304
- if (defaultValue.x === 0 && width && height) {
306
+ if (
307
+ videoModalState.mode === "MAXIMIZED" &&
308
+ defaultValue.x !== screenWidth &&
309
+ width &&
310
+ height
311
+ ) {
305
312
  const value = { x: width, y: height };
306
313
  setDefaultValue(value);
307
314
  animatedValue.setValue(value);
308
315
  }
309
316
  }
310
- }, [additionalData, screenWidth]);
317
+ }, [screenWidth]);
311
318
 
312
319
  React.useEffect(() => {
313
320
  if (
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.125",
3
+ "version": "12.0.0-rc.126",
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.125",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.125",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.125",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.125",
37
+ "@applicaster/applicaster-types": "12.0.0-rc.126",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.126",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.126",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.126",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",