@applicaster/quick-brick-player 13.0.0-rc.119 → 13.0.0-rc.120
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-player",
|
|
3
|
-
"version": "13.0.0-rc.
|
|
3
|
+
"version": "13.0.0-rc.120",
|
|
4
4
|
"description": "Quick Brick Player",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@applicaster/quick-brick-mobile-transport-controls": "13.0.0-rc.
|
|
38
|
+
"@applicaster/quick-brick-mobile-transport-controls": "13.0.0-rc.120",
|
|
39
39
|
"@applicaster/quick-brick-tv-transport-controls": "13.0.0-rc.56",
|
|
40
|
-
"@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.
|
|
41
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.0-rc.
|
|
42
|
-
"@applicaster/zapp-react-native-utils": "13.0.0-rc.
|
|
40
|
+
"@applicaster/zapp-react-native-tvos-app": "13.0.0-rc.120",
|
|
41
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.0-rc.120",
|
|
42
|
+
"@applicaster/zapp-react-native-utils": "13.0.0-rc.120",
|
|
43
43
|
"query-string": "7.1.3",
|
|
44
44
|
"react-native-web-linear-gradient": "1.1.2",
|
|
45
45
|
"shaka-player": "4.3.5",
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
|
-
import {
|
|
3
|
-
Image,
|
|
4
|
-
Animated,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
ViewStyle,
|
|
7
|
-
ImageStyle,
|
|
8
|
-
} from "react-native";
|
|
2
|
+
import { Image, Animated, StyleSheet, ImageStyle } from "react-native";
|
|
9
3
|
|
|
10
4
|
import { imageSrcFromMediaItem } from "@applicaster/zapp-react-native-utils/configurationUtils";
|
|
11
5
|
import {
|
|
@@ -26,16 +20,10 @@ const styles = StyleSheet.create({
|
|
|
26
20
|
type Props = PropsWithChildren<{
|
|
27
21
|
entry: ZappEntry;
|
|
28
22
|
style?: ImageStyle | ImageStyle[];
|
|
29
|
-
wrapperViewStyle?: ViewStyle;
|
|
30
23
|
imageWidth: number;
|
|
31
24
|
}>;
|
|
32
25
|
|
|
33
|
-
export const AnimatedImage = ({
|
|
34
|
-
entry,
|
|
35
|
-
style,
|
|
36
|
-
wrapperViewStyle,
|
|
37
|
-
imageWidth,
|
|
38
|
-
}: Props) => {
|
|
26
|
+
export const AnimatedImage = ({ entry, style, imageWidth }: Props) => {
|
|
39
27
|
const heightAnim = React.useRef(new Animated.Value(imageWidth)).current;
|
|
40
28
|
|
|
41
29
|
const source = React.useMemo(
|
|
@@ -71,7 +59,6 @@ export const AnimatedImage = ({
|
|
|
71
59
|
<Animated.View
|
|
72
60
|
style={[
|
|
73
61
|
styles.container,
|
|
74
|
-
wrapperViewStyle,
|
|
75
62
|
{
|
|
76
63
|
width: heightAnim,
|
|
77
64
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-native/no-color-literals */
|
|
2
2
|
import { StyleSheet } from "react-native";
|
|
3
|
+
import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
3
4
|
|
|
4
5
|
const SHADOW_COLOR = "rgba(0, 0, 0, 1)";
|
|
5
6
|
|
|
@@ -25,7 +26,10 @@ export const styles = StyleSheet.create({
|
|
|
25
26
|
borderColor: "transparent",
|
|
26
27
|
shadowColor: SHADOW_COLOR,
|
|
27
28
|
shadowOffset: { width: 0, height: 24 },
|
|
28
|
-
shadowOpacity:
|
|
29
|
+
shadowOpacity: platformSelect({
|
|
30
|
+
ios: 0.35,
|
|
31
|
+
default: 0.2,
|
|
32
|
+
}),
|
|
29
33
|
shadowRadius: 32,
|
|
30
34
|
elevation: 12,
|
|
31
35
|
},
|