@quintype/native-components 2.19.29-ui-toggles.0 → 2.19.29-ui-toggles.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.19.29-ui-toggles.0",
3
+ "version": "2.19.29-ui-toggles.1",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,13 +1,13 @@
1
- import PropTypes from "prop-types";
2
- import React, { useContext } from "react";
3
- import { View } from "react-native";
4
- import Icon from "react-native-vector-icons/FontAwesome";
5
- import { ResponsiveImage, Text } from "../index";
6
- import { ActionText } from "../ActionText/ActionText";
1
+ import PropTypes from 'prop-types';
2
+ import React, { useContext } from 'react';
3
+ import { View } from 'react-native';
4
+ import Icon from 'react-native-vector-icons/FontAwesome';
5
+ import { ResponsiveImage, Text } from '../index';
6
+ import { ActionText } from '../ActionText/ActionText';
7
7
 
8
- import { authorRowStyleSheet } from "./styles";
9
- import { AppTheme } from "../../utils";
10
- import { COMP_CONTENT_CONSTANTS } from "../../constants/component-constants/content-constants/constants";
8
+ import { authorRowStyleSheet } from './styles';
9
+ import { AppTheme } from '../../utils';
10
+ import { COMP_CONTENT_CONSTANTS } from '../../constants/component-constants/content-constants/constants';
11
11
 
12
12
  export const AuthorRow = ({
13
13
  authors,
@@ -18,7 +18,7 @@ export const AuthorRow = ({
18
18
  disablePress,
19
19
  }) => {
20
20
  const { theme } = useContext(AppTheme);
21
- const { COLORS, translate } = theme;
21
+ const { COLORS, translate, enableReadTimeOnStoryScreen } = theme;
22
22
  const styles = authorRowStyleSheet(theme);
23
23
 
24
24
  return (
@@ -33,10 +33,10 @@ export const AuthorRow = ({
33
33
  style={styles.imageBlock}
34
34
  testID={COMP_CONTENT_CONSTANTS.authorImage}
35
35
  >
36
- {author?.["avatar-s3-key"] ? (
36
+ {author?.['avatar-s3-key'] ? (
37
37
  <ResponsiveImage
38
38
  source={{
39
- uri: `${cdn}/${author?.["avatar-s3-key"]}`,
39
+ uri: `${cdn}/${author?.['avatar-s3-key']}`,
40
40
  }}
41
41
  style={styles.avatarImage}
42
42
  imageWidth={50}
@@ -70,11 +70,13 @@ export const AuthorRow = ({
70
70
  </View>
71
71
  );
72
72
  })}
73
- {readtime ? (
73
+ {enableReadTimeOnStoryScreen && readtime ? (
74
74
  <View style={styles.readtimeComponent}>
75
- <Text style={styles.readtime}>{`| ${readtime} ${translate(
76
- "min read"
77
- )}`}</Text>
75
+ <Text style={styles.readtime}>
76
+ {`| ${readtime} ${translate(
77
+ 'min read',
78
+ )}`}
79
+ </Text>
78
80
  </View>
79
81
  ) : null}
80
82
  </View>