@quintype/native-components 2.28.4 → 2.28.5-beta.1

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": "@quintype/native-components",
3
- "version": "2.28.4",
3
+ "version": "2.28.5-beta.1",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -9,6 +9,7 @@
9
9
  "lint:ci": "npx eslint $(git diff --pretty='' --diff-filter=d --name-only origin/master..HEAD -- '*.js' '*.jsx') ./start.js"
10
10
  },
11
11
  "dependencies": {
12
+ "@react-native-community/slider": "^4.5.3",
12
13
  "atob": "^2.1.2",
13
14
  "base-64": "^1.0.0",
14
15
  "date-fns": "^2.15.0",
@@ -16,24 +17,26 @@
16
17
  "prop-types": "15.7.2",
17
18
  "quintype-js": "1.2.1",
18
19
  "react-htmltext": "^0.40.2",
19
- "react-native-fast-image": "8.3.2",
20
+ "react-native-fast-image": ">=8.3.2",
20
21
  "react-native-image-pan-zoom": "^2.1.12",
21
22
  "react-native-lightbox": "0.8.1",
23
+ "react-native-modal": "^13.0.1",
22
24
  "react-native-render-html": "^4.2.3",
23
25
  "react-native-share": "^10.2.0",
24
- "react-native-star-rating-widget": "^1.7.3"
26
+ "react-native-star-rating-widget": "^1.7.3",
27
+ "react-native-track-player": "^4.1.1"
25
28
  },
26
29
  "peerDependencies": {
27
30
  "@react-navigation/native": ">=6.1.17",
28
31
  "lodash": ">=4.17.20",
29
32
  "react": ">=17.0.2",
30
33
  "react-native": ">=0.67.5",
34
+ "react-native-blob-util": ">=6.7.4",
31
35
  "react-native-fast-image": ">=8.3.2",
36
+ "react-native-linear-gradient": "^2.8.3",
32
37
  "react-native-pdf": ">=6.7.4",
33
- "react-native-blob-util": ">=6.7.4",
34
- "react-native-webview": ">=11.0.0",
35
38
  "react-native-vector-icons": "^10.0.0",
36
- "react-native-linear-gradient": "^2.8.3"
39
+ "react-native-webview": ">=11.0.0"
37
40
  },
38
41
  "devDependencies": {
39
42
  "@babel/core": "^7.11.1",
@@ -24,6 +24,7 @@ export const AuthorRow = ({
24
24
  return (
25
25
  <View style={styles.authorRow}>
26
26
  {authors?.map((author) => {
27
+ const avatarUrl = author?.['avatar-s3-key'] ? `${cdn}/${author?.['avatar-s3-key']}` : author?.['avatar-url'] ?? null;
27
28
  if (!author.name) {
28
29
  return null;
29
30
  }
@@ -33,10 +34,10 @@ export const AuthorRow = ({
33
34
  style={styles.imageBlock}
34
35
  testID={COMP_CONTENT_CONSTANTS.authorImage}
35
36
  >
36
- {author?.['avatar-s3-key'] ? (
37
+ {avatarUrl ? (
37
38
  <ResponsiveImage
38
39
  source={{
39
- uri: `${cdn}/${author?.['avatar-s3-key']}`,
40
+ uri: avatarUrl,
40
41
  }}
41
42
  style={styles.avatarImage}
42
43
  imageWidth={50}
@@ -29,10 +29,6 @@ const ResponsiveImageBase = (props) => {
29
29
  borderRadius: 12,
30
30
  overflow: "hidden",
31
31
  },
32
- props.imageWidth && {
33
- width: props.imageWidth,
34
- height: (props.imageWidth * 9) / 16,
35
- },
36
32
  ])
37
33
 
38
34
  const flattenedImageStyle = StyleSheet.flatten([
@@ -100,8 +96,8 @@ const ResponsiveImageBase = (props) => {
100
96
  style={flattenedImageStyle}
101
97
  source={sourceURI}
102
98
  resizeMode={FastImage.resizeMode.contain}
103
- {...props}
104
99
  onLoad={()=>setPlaceholder(false)}
100
+ {...props}
105
101
  />
106
102
  )
107
103
  }