@quintype/native-components 2.20.3 → 2.20.4
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.20.4](https://github.com/quintype/native-components/compare/v2.20.3...v2.20.4) (2023-02-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **fonts:** Fixes font for Related-Stories and Also-Read on Android :hammer: ([#197](https://github.com/quintype/native-components/issues/197)) ([952c95b](https://github.com/quintype/native-components/commit/952c95b43b76f55eeb25cf9e071a88a3d939ce60))
|
|
11
|
+
|
|
5
12
|
### [2.20.3](https://github.com/quintype/native-components/compare/v2.20.2...v2.20.3) (2023-02-01)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -25,8 +25,8 @@ export const AlsoRead = (props) => {
|
|
|
25
25
|
const linkedImage = get(linkedStories, [linkedStoryId, 'hero-image-s3-key']);
|
|
26
26
|
|
|
27
27
|
const { theme } = useContext(AppTheme);
|
|
28
|
-
const {
|
|
29
|
-
const styles = alsoReadStyles(
|
|
28
|
+
const { CustomFallBackIcon, translate } = theme;
|
|
29
|
+
const styles = alsoReadStyles(theme);
|
|
30
30
|
|
|
31
31
|
const fallBackIcon = CustomFallBackIcon ? <CustomFallBackIcon /> : <FallbackIcon />;
|
|
32
32
|
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { StyleSheet } from
|
|
1
|
+
import { StyleSheet } from "react-native";
|
|
2
2
|
|
|
3
|
-
export const alsoReadStyles = (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
3
|
+
export const alsoReadStyles = (appThemeContext) => {
|
|
4
|
+
const { COLORS, FONT_SIZE, FONT_FAMILY, DARK_MODE } = appThemeContext;
|
|
5
|
+
return StyleSheet.create({
|
|
6
|
+
wrapper: {
|
|
7
|
+
padding: 10,
|
|
8
|
+
},
|
|
9
|
+
container: {
|
|
10
|
+
flexDirection: "row",
|
|
11
|
+
},
|
|
12
|
+
alsoReadContentWrapper: {
|
|
13
|
+
paddingLeft: 12,
|
|
14
|
+
flex: 1,
|
|
15
|
+
},
|
|
16
|
+
alsoReadText: {
|
|
17
|
+
fontSize: FONT_SIZE.h2,
|
|
18
|
+
fontFamily: FONT_FAMILY.secondaryBold,
|
|
19
|
+
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_1,
|
|
20
|
+
},
|
|
21
|
+
alsoReadTitle: {
|
|
22
|
+
fontSize: FONT_SIZE.h2,
|
|
23
|
+
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_1,
|
|
24
|
+
},
|
|
25
|
+
fallBackImageWrapper: {
|
|
26
|
+
backgroundColor: COLORS.BRAND_WHITE,
|
|
27
|
+
width: 150,
|
|
28
|
+
height: 84,
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { StyleSheet,I18nManager } from 'react-native';
|
|
2
2
|
|
|
3
3
|
export const relatedStoriesStyles = (appThemeContext) => {
|
|
4
|
-
const { COLORS, FONT_SIZE } = appThemeContext;
|
|
4
|
+
const { COLORS, FONT_SIZE, FONT_FAMILY } = appThemeContext;
|
|
5
5
|
return StyleSheet.create({
|
|
6
6
|
titleStyle: {
|
|
7
7
|
fontSize: FONT_SIZE.title,
|
|
8
|
-
|
|
8
|
+
fontFamily: FONT_FAMILY.secondaryBold,
|
|
9
9
|
color: COLORS.BRAND_BLACK,
|
|
10
10
|
writingDirection: I18nManager.isRTL ? 'rtl' : 'ltr',
|
|
11
11
|
paddingHorizontal:5,
|