@applicaster/zapp-react-native-ui-components 14.0.0-alpha.8419134002 → 14.0.0-alpha.9848043301

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.
Files changed (47) hide show
  1. package/Components/AudioPlayer/{tv/Artwork.tsx → Artwork.tsx} +2 -3
  2. package/Components/AudioPlayer/{tv/index.tsx → AudioPlayer.tsx} +58 -17
  3. package/Components/AudioPlayer/AudioPlayerLayout.tsx +202 -0
  4. package/Components/AudioPlayer/{tv/Channel.tsx → Channel.tsx} +7 -7
  5. package/Components/AudioPlayer/{tv/Runtime.tsx → Runtime.tsx} +1 -7
  6. package/Components/AudioPlayer/{tv/Summary.tsx → Summary.tsx} +2 -6
  7. package/Components/AudioPlayer/{tv/Title.tsx → Title.tsx} +2 -6
  8. package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/Runtime.test.js.snap +2 -2
  9. package/Components/AudioPlayer/{mobile/__tests__/__snapshots__/audioPlayerMobileLayout.test.js.snap → __tests__/__snapshots__/audioPlayer.test.js.snap} +8 -2
  10. package/Components/AudioPlayer/__tests__/__snapshots__/audioPlayerLayout.test.js.snap +72 -0
  11. package/Components/AudioPlayer/__tests__/__snapshots__/channel.test.js.snap +28 -0
  12. package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/summary.test.js.snap +2 -1
  13. package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/title.test.js.snap +2 -1
  14. package/Components/AudioPlayer/{tv/__tests__ → __tests__}/audioPlayer.test.js +3 -7
  15. package/Components/AudioPlayer/__tests__/audioPlayerLayout.test.js +26 -0
  16. package/Components/AudioPlayer/{tv/helpers.tsx → helpers.tsx} +2 -1
  17. package/Components/AudioPlayer/index.ts +1 -0
  18. package/Components/Cell/index.js +2 -6
  19. package/Components/MasterCell/index.tsx +1 -1
  20. package/Components/PlayerContainer/PlayerContainer.tsx +19 -7
  21. package/Components/PlayerImageBackground/index.tsx +1 -1
  22. package/Components/VideoModal/ModalAnimation/ModalAnimationContext.tsx +9 -1
  23. package/Components/VideoModal/PlayerDetails.tsx +24 -2
  24. package/Components/VideoModal/PlayerWrapper.tsx +26 -142
  25. package/Components/VideoModal/VideoModal.tsx +3 -17
  26. package/Components/VideoModal/__tests__/PlayerWrapper.test.tsx +1 -7
  27. package/Components/VideoModal/__tests__/__snapshots__/PlayerWrapper.test.tsx.snap +44 -240
  28. package/Components/VideoModal/hooks/index.ts +0 -2
  29. package/Components/VideoModal/utils.ts +6 -0
  30. package/Components/Viewport/VisibilitySensor/VisibilitySensor.tsx +3 -3
  31. package/Components/default-cell-renderer/viewTrees/tv/DefaultCell/index.ts +3 -3
  32. package/package.json +5 -5
  33. package/Components/AudioPlayer/index.tsx +0 -15
  34. package/Components/AudioPlayer/mobile/Layout.tsx +0 -66
  35. package/Components/AudioPlayer/mobile/__tests__/audioPlayerMobileLayout.test.js +0 -18
  36. package/Components/AudioPlayer/mobile/index.tsx +0 -18
  37. package/Components/AudioPlayer/tv/Layout.tsx +0 -168
  38. package/Components/AudioPlayer/tv/__tests__/__snapshots__/audioPlayer.test.js.snap +0 -164
  39. package/Components/AudioPlayer/tv/__tests__/__snapshots__/channel.test.js.snap +0 -19
  40. package/Components/AudioPlayer/types.ts +0 -40
  41. package/Components/VideoModal/hooks/useBackgroundColor.ts +0 -10
  42. /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/Runtime.test.js +0 -0
  43. /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/__snapshots__/artWork.test.js.snap +0 -0
  44. /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/artWork.test.js +0 -0
  45. /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/channel.test.js +0 -0
  46. /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/summary.test.js +0 -0
  47. /package/Components/AudioPlayer/{tv/__tests__ → __tests__}/title.test.js +0 -0
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- import { QBImage } from "@applicaster/zapp-react-native-ui-components/Components/Image";
2
+ import { View, Image, StyleSheet } from "react-native";
4
3
  import { toNumberWithDefaultZero } from "@applicaster/zapp-react-native-utils/numberUtils";
5
4
 
6
5
  const styles = StyleSheet.create({
@@ -30,7 +29,7 @@ export function Artwork({ srcImage, config }: Props) {
30
29
 
31
30
  return (
32
31
  <View style={styles.container}>
33
- <QBImage
32
+ <Image
34
33
  fadeDuration={0}
35
34
  source={{ uri: srcImage }}
36
35
  style={[styles.image, { borderRadius }]}
@@ -1,24 +1,60 @@
1
1
  import React, { useCallback, useMemo } from "react";
2
2
 
3
3
  import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
4
- import { useArtworkImage } from "@applicaster/zapp-react-native-utils/audioPlayerUtils";
5
4
 
6
- import { AudioPlayerTVLayout } from "./Layout";
5
+ import { imageSrcFromMediaItem } from "@applicaster/zapp-react-native-utils/configurationUtils";
7
6
 
7
+ import { AudioPlayerLayout } from "./AudioPlayerLayout";
8
8
  import { Channel } from "./Channel";
9
9
  import { Title } from "./Title";
10
10
  import { Summary } from "./Summary";
11
11
  import { Runtime } from "./Runtime";
12
12
  import { getPropertyFromEntryOrConfig } from "./helpers";
13
-
14
- import { Props } from "../types";
15
-
16
- export function AudioPlayerTV(props: Props) {
17
- const { audio_item, plugin_configuration, style = {} } = props;
13
+ import { ViewStyle } from "react-native";
14
+
15
+ type Props = {
16
+ audio_item: ZappEntry & {
17
+ extensions?: {
18
+ audio_player_artwork_aspect_ratio?: string;
19
+ audio_player_background_image?: string;
20
+ audio_player_background_color?: string;
21
+ audio_player_channel_icon?: string;
22
+ audio_player_title_color?: string;
23
+ audio_player_summary_color?: string;
24
+ audio_player_rtl?: boolean;
25
+ audio_player_background_image_default_color?: string;
26
+ start_time?: string;
27
+ end_time?: string;
28
+ };
29
+ };
30
+ plugin_configuration: {
31
+ audio_player_background_color?: string;
32
+ audio_player_title_color?: string;
33
+ audio_player_summary_color?: string;
34
+ audio_player_rtl?: string;
35
+ audio_player_background_image_default_color?: string;
36
+ audio_player_background_image?: string;
37
+ audio_player_artwork_aspect_ratio?: string;
38
+ lg_tv_audio_player_title_font_family?: string;
39
+ lg_tv_audio_player_title_font_size?: number;
40
+ lg_tv_audio_player_summary_font_family?: string;
41
+ lg_tv_audio_player_summary_font_size?: number;
42
+ samsung_tv_audio_player_title_font_family?: string;
43
+ samsung_tv_audio_player_title_font_size?: number;
44
+ samsung_tv_audio_player_summary_font_family?: string;
45
+ samsung_tv_audio_player_summary_font_size?: number;
46
+ tv_os_audio_player_title_font_family?: string;
47
+ tv_os_audio_player_title_font_size?: number;
48
+ tv_os_audio_player_summary_font_family?: string;
49
+ tv_os_audio_player_summary_font_size?: number;
50
+ };
51
+ style?: ViewStyle;
52
+ };
53
+
54
+ export function AudioPlayer(props: Props) {
55
+ const { audio_item, plugin_configuration } = props;
18
56
  const { extensions, title, summary } = audio_item;
19
57
 
20
- const artwork = useArtworkImage(audio_item);
21
-
22
58
  const getProp = useCallback(
23
59
  getPropertyFromEntryOrConfig({
24
60
  entry: audio_item,
@@ -28,20 +64,20 @@ export function AudioPlayerTV(props: Props) {
28
64
  );
29
65
 
30
66
  const config = useMemo(() => {
31
- // Checking if we are receiving items from the DSP
67
+ // Checking if we are recieving items from the DSP
32
68
  const titleColor = getProp("audio_player_title_color");
33
69
  const summaryColor = getProp("audio_player_summary_color");
34
70
  const backgroundColor = getProp("audio_player_background_color");
35
71
  const backgroundImage = getProp("audio_player_background_image");
72
+ const artworkAspectRatio = getProp("audio_player_artwork_aspect_ratio");
36
73
  const channelIcon = getProp("audio_player_channel_icon");
37
74
  const rtlFlag = getProp("audio_player_rtl");
75
+ const artworkBorderRadius = getProp("audio_player_artwork_border_radius");
38
76
 
39
- const backgroundImageOverlay = getProp(
40
- "audio_player_background_image_overlay"
77
+ const audioPlayerBackgroundImageDefaultColor = getProp(
78
+ "audio_player_background_image_default_color"
41
79
  );
42
80
 
43
- const artworkBorderRadius = getProp("audio_player_artwork_border_radius");
44
-
45
81
  const isRTL = rtlFlag === "1" || rtlFlag === "true" || rtlFlag === true;
46
82
 
47
83
  const titleFontFamily = getProp(
@@ -116,18 +152,23 @@ export function AudioPlayerTV(props: Props) {
116
152
  summaryFontSize,
117
153
  runTimeFontFamily,
118
154
  runTimeFontSize,
155
+ artworkAspectRatio,
119
156
  channelIcon,
157
+ audioPlayerBackgroundImageDefaultColor,
120
158
  artworkBorderRadius,
121
- backgroundImageOverlay,
122
159
  };
123
160
  }, [getProp]);
124
161
 
162
+ const artwork = imageSrcFromMediaItem(audio_item, [
163
+ config?.artworkAspectRatio,
164
+ ]);
165
+
125
166
  return (
126
- <AudioPlayerTVLayout artwork={artwork} config={config} style={style}>
167
+ <AudioPlayerLayout artwork={artwork} config={config}>
127
168
  <Channel srcImage={config?.channelIcon} config={config} />
128
169
  <Title title={title} config={config} />
129
170
  <Summary summary={summary} config={config} />
130
171
  <Runtime {...extensions} config={config} />
131
- </AudioPlayerTVLayout>
172
+ </AudioPlayerLayout>
132
173
  );
133
174
  }
@@ -0,0 +1,202 @@
1
+ import React, { useRef } from "react";
2
+ import { View, ImageBackground, Animated } from "react-native";
3
+
4
+ import { platformSelect } from "@applicaster/zapp-react-native-utils/reactUtils";
5
+
6
+ import { Artwork } from "./Artwork";
7
+ import { directionStyles } from "./helpers";
8
+
9
+ type Props = {
10
+ artwork?: string;
11
+ config: {
12
+ titleColor: string;
13
+ summaryColor: string;
14
+ backgroundColor: string;
15
+ backgroundImage: string;
16
+ isRTL: boolean;
17
+ artworkBorderRadius: Option<number>;
18
+ };
19
+ children: React.ReactNode;
20
+ };
21
+
22
+ export function AudioPlayerLayout({ artwork, config, children }: Props) {
23
+ const fadeAnimation = useRef(new Animated.Value(0)).current;
24
+
25
+ const fadeAudioPlayerIn = () => {
26
+ Animated.timing(fadeAnimation, {
27
+ toValue: 1,
28
+ duration: 3000,
29
+ useNativeDriver: true,
30
+ }).start();
31
+ };
32
+
33
+ const { isRTL, backgroundColor, backgroundImage } = config;
34
+
35
+ const backgroundImageSource = { uri: backgroundImage || artwork };
36
+
37
+ const backgroundColorStyle = backgroundImageSource.uri
38
+ ? "transparent"
39
+ : backgroundColor;
40
+
41
+ const mainContainerStyles = platformSelect({
42
+ tvos: {
43
+ width: "100%",
44
+ height: "100%",
45
+ alignItems: "center",
46
+ justifyContent: "center",
47
+ flexDirection: directionStyles(isRTL).flexDirection,
48
+ backgroundColor: backgroundColorStyle,
49
+ },
50
+ android_tv: {
51
+ width: "100%",
52
+ height: "100%",
53
+ alignItems: "center",
54
+ justifyContent: "center",
55
+ flexDirection: directionStyles(isRTL).flexDirection,
56
+ backgroundColor: backgroundColorStyle,
57
+ },
58
+ web: {
59
+ width: 1920,
60
+ height: 1080,
61
+ alignItems: "center",
62
+ justifyContent: "center",
63
+ flexDirection: directionStyles(isRTL).flexDirection,
64
+ backgroundColor: backgroundColorStyle,
65
+ },
66
+ native: {
67
+ backgroundColor: backgroundColorStyle,
68
+ overflow: "hidden",
69
+ width: "100%",
70
+ height: "100%",
71
+ },
72
+ samsung_tv: {
73
+ position: "absolute",
74
+ margin: "auto",
75
+ display: "flex",
76
+ flexWrap: "wrap",
77
+ width: "100vw",
78
+ flex: 1,
79
+ alignItems: "center",
80
+ justifyContent: "center",
81
+ flexDirection: directionStyles(isRTL).flexDirection,
82
+ backgroundColor: backgroundColorStyle,
83
+ },
84
+ lg_tv: {
85
+ position: "absolute",
86
+ margin: "auto",
87
+ display: "flex",
88
+ flexWrap: "wrap",
89
+ width: "100vw",
90
+ flex: 1,
91
+ alignItems: "center",
92
+ justifyContent: "center",
93
+ flexDirection: directionStyles(isRTL).flexDirection,
94
+ backgroundColor: backgroundColorStyle,
95
+ },
96
+ });
97
+
98
+ const backgroundImgStyles = platformSelect({
99
+ tvos: {
100
+ width: "100%",
101
+ height: "100%",
102
+ alignItems: "center",
103
+ justifyContent: "center",
104
+ },
105
+ android_tv: {
106
+ width: "100%",
107
+ height: "100%",
108
+ alignItems: "center",
109
+ justifyContent: "center",
110
+ },
111
+ web: {
112
+ position: "absolute",
113
+ margin: "auto",
114
+ display: "flex",
115
+ flexWrap: "wrap",
116
+ width: "100%",
117
+ height: "100%",
118
+ flex: 1,
119
+ alignItems: "center",
120
+ justifyContent: "center",
121
+ },
122
+ native: {
123
+ flex: 1,
124
+ },
125
+ });
126
+
127
+ const textContainerStyles = platformSelect({
128
+ tvos: {
129
+ width: 600,
130
+ height: 362,
131
+ marginHorizontal: 24,
132
+ alignItems: directionStyles(isRTL).justifyContent,
133
+ },
134
+ android_tv: {
135
+ width: 600,
136
+ height: 362,
137
+ marginHorizontal: 24,
138
+ alignItems: directionStyles(isRTL).justifyContent,
139
+ },
140
+ web: {
141
+ margin: 10,
142
+ height: "100vh",
143
+ alignItems: directionStyles(isRTL).justifyContent,
144
+ justifyContent: "center",
145
+ },
146
+ });
147
+
148
+ const audioPlayerLayoutTV = backgroundImageSource?.uri ? (
149
+ <ImageBackground
150
+ source={backgroundImageSource}
151
+ style={backgroundImgStyles}
152
+ resizeMode="cover"
153
+ >
154
+ <View style={mainContainerStyles}>
155
+ {!!artwork && <Artwork srcImage={artwork} config={config} />}
156
+ <View style={textContainerStyles}>{children}</View>
157
+ </View>
158
+ </ImageBackground>
159
+ ) : (
160
+ <View style={mainContainerStyles}>
161
+ {!!artwork && <Artwork srcImage={artwork} config={config} />}
162
+ <View style={textContainerStyles}>{children}</View>
163
+ </View>
164
+ );
165
+
166
+ const audioPlayerLayoutMobile = () => {
167
+ fadeAudioPlayerIn();
168
+
169
+ return (
170
+ <View style={mainContainerStyles} pointerEvents="none">
171
+ <Animated.View
172
+ style={[
173
+ mainContainerStyles,
174
+ {
175
+ opacity: fadeAnimation,
176
+ },
177
+ ]}
178
+ >
179
+ <ImageBackground
180
+ source={backgroundImageSource}
181
+ style={backgroundImgStyles}
182
+ resizeMode="cover"
183
+ >
184
+ <View style={mainContainerStyles} />
185
+ </ImageBackground>
186
+ </Animated.View>
187
+ </View>
188
+ );
189
+ };
190
+
191
+ const audioPlayerLayout = platformSelect({
192
+ tvos: audioPlayerLayoutTV,
193
+ android_tv: audioPlayerLayoutTV,
194
+ web: audioPlayerLayoutTV,
195
+ samsung_tv: audioPlayerLayoutTV,
196
+ lg_tv: audioPlayerLayoutTV,
197
+ ios: audioPlayerLayoutMobile(),
198
+ android: audioPlayerLayoutMobile(),
199
+ });
200
+
201
+ return audioPlayerLayout;
202
+ }
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import { Image } from "react-native";
3
- import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
2
+ import { View, Image } from "react-native";
4
3
 
5
4
  type Props = {
6
5
  srcImage: string;
@@ -16,16 +15,17 @@ type Props = {
16
15
  const imageStyles = {
17
16
  width: 128,
18
17
  height: 72,
18
+ };
19
19
 
20
+ const containerStyles = {
21
+ ...imageStyles,
20
22
  marginBottom: 30,
21
23
  };
22
24
 
23
25
  export function Channel({ srcImage }: Props) {
24
- if (isNilOrEmpty(srcImage)) {
25
- return null;
26
- }
27
-
28
26
  return (
29
- <Image fadeDuration={0} source={{ uri: srcImage }} style={imageStyles} />
27
+ <View style={containerStyles}>
28
+ <Image fadeDuration={0} source={{ uri: srcImage }} style={imageStyles} />
29
+ </View>
30
30
  );
31
31
  }
@@ -1,8 +1,6 @@
1
1
  import React from "react";
2
2
  import { View, Text, ViewStyle, TextStyle } from "react-native";
3
3
  import { toNumberWithDefault } from "@applicaster/zapp-react-native-utils/numberUtils";
4
- import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
5
-
6
4
  import { directionStyles } from "./helpers";
7
5
 
8
6
  type Props = {
@@ -21,6 +19,7 @@ type Props = {
21
19
 
22
20
  const containerStyles = ({ isRTL }) => ({
23
21
  width: 600,
22
+ height: 40,
24
23
  justifyContent: directionStyles(isRTL)
25
24
  .justifyContent as ViewStyle["justifyContent"],
26
25
  });
@@ -39,16 +38,11 @@ const textStyles = ({
39
38
  });
40
39
 
41
40
  export function Runtime({ start_time, end_time, config }: Props) {
42
- if (isNilOrEmpty(start_time) && isNilOrEmpty(end_time)) {
43
- return null;
44
- }
45
-
46
41
  return (
47
42
  <View style={containerStyles({ isRTL: config.isRTL })}>
48
43
  {!!start_time && !!end_time && (
49
44
  <Text
50
45
  style={textStyles(config) as TextStyle}
51
- numberOfLines={1}
52
46
  >{`${start_time} - ${end_time}`}</Text>
53
47
  )}
54
48
  </View>
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { View, Text, TextStyle, StyleSheet } from "react-native";
3
3
  import { toNumberWithDefault } from "@applicaster/zapp-react-native-utils/numberUtils";
4
- import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
5
4
 
6
5
  type Props = {
7
6
  config: {
@@ -19,6 +18,7 @@ type Props = {
19
18
  const styles = StyleSheet.create({
20
19
  container: {
21
20
  width: 600,
21
+ height: 80,
22
22
  marginBottom: 30,
23
23
  },
24
24
  });
@@ -38,13 +38,9 @@ const textStyles = ({
38
38
  });
39
39
 
40
40
  export function Summary({ summary, config }: Props) {
41
- if (isNilOrEmpty(summary)) {
42
- return null;
43
- }
44
-
45
41
  return (
46
42
  <View style={styles.container}>
47
- <Text style={textStyles(config)} numberOfLines={3}>
43
+ <Text style={textStyles(config)} numberOfLines={2}>
48
44
  {summary}
49
45
  </Text>
50
46
  </View>
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { View, Text, TextStyle, StyleSheet } from "react-native";
3
3
  import { toNumberWithDefault } from "@applicaster/zapp-react-native-utils/numberUtils";
4
- import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
5
4
 
6
5
  type Props = {
7
6
  config: {
@@ -19,6 +18,7 @@ type Props = {
19
18
  const styles = StyleSheet.create({
20
19
  container: {
21
20
  width: 600,
21
+ height: 100,
22
22
  marginBottom: 12,
23
23
  },
24
24
  });
@@ -32,13 +32,9 @@ const textStyles = ({ titleColor, isRTL, titleFontFamily, titleFontSize }) => ({
32
32
  });
33
33
 
34
34
  export function Title({ title, config }: Props) {
35
- if (isNilOrEmpty(title)) {
36
- return null;
37
- }
38
-
39
35
  return (
40
36
  <View style={styles.container}>
41
- <Text style={textStyles(config)} numberOfLines={3}>
37
+ <Text style={textStyles(config)} numberOfLines={2}>
42
38
  {title}
43
39
  </Text>
44
40
  </View>
@@ -4,13 +4,13 @@ exports[`<Runtime /> LTR renders correctly 1`] = `
4
4
  <View
5
5
  style={
6
6
  {
7
+ "height": 40,
7
8
  "justifyContent": "flex-start",
8
9
  "width": 600,
9
10
  }
10
11
  }
11
12
  >
12
13
  <Text
13
- numberOfLines={1}
14
14
  style={
15
15
  {
16
16
  "alignItems": "flex-end",
@@ -33,13 +33,13 @@ exports[`<Runtime /> RTL renders correctly 1`] = `
33
33
  <View
34
34
  style={
35
35
  {
36
+ "height": 40,
36
37
  "justifyContent": "flex-end",
37
38
  "width": 600,
38
39
  }
39
40
  }
40
41
  >
41
42
  <Text
42
- numberOfLines={1}
43
43
  style={
44
44
  {
45
45
  "alignItems": "flex-start",
@@ -1,12 +1,14 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`<AudioPlayerMobileLayout /> renders correctly 1`] = `
3
+ exports[`<AudioPlayer /> renders correctly 1`] = `
4
4
  <View
5
5
  pointerEvents="none"
6
6
  style={
7
7
  {
8
8
  "backgroundColor": "transparent",
9
+ "height": "100%",
9
10
  "overflow": "hidden",
11
+ "width": "100%",
10
12
  }
11
13
  }
12
14
  >
@@ -15,8 +17,10 @@ exports[`<AudioPlayerMobileLayout /> renders correctly 1`] = `
15
17
  style={
16
18
  {
17
19
  "backgroundColor": "transparent",
20
+ "height": "100%",
18
21
  "opacity": 0,
19
22
  "overflow": "hidden",
23
+ "width": "100%",
20
24
  }
21
25
  }
22
26
  >
@@ -32,7 +36,7 @@ exports[`<AudioPlayerMobileLayout /> renders correctly 1`] = `
32
36
  resizeMode="cover"
33
37
  source={
34
38
  {
35
- "uri": "background_image_url",
39
+ "uri": "https://example.com",
36
40
  }
37
41
  }
38
42
  style={
@@ -56,7 +60,9 @@ exports[`<AudioPlayerMobileLayout /> renders correctly 1`] = `
56
60
  style={
57
61
  {
58
62
  "backgroundColor": "transparent",
63
+ "height": "100%",
59
64
  "overflow": "hidden",
65
+ "width": "100%",
60
66
  }
61
67
  }
62
68
  />
@@ -0,0 +1,72 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<AudioPlayerLayout /> renders correctly 1`] = `
4
+ <View
5
+ pointerEvents="none"
6
+ style={
7
+ {
8
+ "backgroundColor": "transparent",
9
+ "height": "100%",
10
+ "overflow": "hidden",
11
+ "width": "100%",
12
+ }
13
+ }
14
+ >
15
+ <View
16
+ collapsable={false}
17
+ style={
18
+ {
19
+ "backgroundColor": "transparent",
20
+ "height": "100%",
21
+ "opacity": 0,
22
+ "overflow": "hidden",
23
+ "width": "100%",
24
+ }
25
+ }
26
+ >
27
+ <View
28
+ accessibilityIgnoresInvertColors={true}
29
+ style={
30
+ {
31
+ "flex": 1,
32
+ }
33
+ }
34
+ >
35
+ <Image
36
+ resizeMode="cover"
37
+ source={
38
+ {
39
+ "uri": "https://example.com",
40
+ }
41
+ }
42
+ style={
43
+ [
44
+ {
45
+ "bottom": 0,
46
+ "left": 0,
47
+ "position": "absolute",
48
+ "right": 0,
49
+ "top": 0,
50
+ },
51
+ {
52
+ "height": undefined,
53
+ "width": undefined,
54
+ },
55
+ undefined,
56
+ ]
57
+ }
58
+ />
59
+ <View
60
+ style={
61
+ {
62
+ "backgroundColor": "transparent",
63
+ "height": "100%",
64
+ "overflow": "hidden",
65
+ "width": "100%",
66
+ }
67
+ }
68
+ />
69
+ </View>
70
+ </View>
71
+ </View>
72
+ `;
@@ -0,0 +1,28 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<Channel /> renders correctly 1`] = `
4
+ <View
5
+ style={
6
+ {
7
+ "height": 72,
8
+ "marginBottom": 30,
9
+ "width": 128,
10
+ }
11
+ }
12
+ >
13
+ <Image
14
+ fadeDuration={0}
15
+ source={
16
+ {
17
+ "uri": "https://example.com",
18
+ }
19
+ }
20
+ style={
21
+ {
22
+ "height": 72,
23
+ "width": 128,
24
+ }
25
+ }
26
+ />
27
+ </View>
28
+ `;
@@ -4,13 +4,14 @@ exports[`<Summary /> renders correctly 1`] = `
4
4
  <View
5
5
  style={
6
6
  {
7
+ "height": 80,
7
8
  "marginBottom": 30,
8
9
  "width": 600,
9
10
  }
10
11
  }
11
12
  >
12
13
  <Text
13
- numberOfLines={3}
14
+ numberOfLines={2}
14
15
  style={
15
16
  {
16
17
  "color": "white",
@@ -4,13 +4,14 @@ exports[`<Title /> renders correctly 1`] = `
4
4
  <View
5
5
  style={
6
6
  {
7
+ "height": 100,
7
8
  "marginBottom": 12,
8
9
  "width": 600,
9
10
  }
10
11
  }
11
12
  >
12
13
  <Text
13
- numberOfLines={3}
14
+ numberOfLines={2}
14
15
  style={
15
16
  {
16
17
  "color": "white",