@quintype/native-components 2.20.28-beta.1 → 2.20.29
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,8 @@
|
|
|
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.29](https://github.com/quintype/native-components/compare/v2.20.28...v2.20.29) (2024-06-04)
|
|
6
|
+
|
|
5
7
|
### [2.20.28](https://github.com/quintype/native-components/compare/v2.20.27...v2.20.28) (2024-05-17)
|
|
6
8
|
|
|
7
9
|
### [2.20.27](https://github.com/quintype/native-components/compare/v2.20.26...v2.20.27) (2024-05-17)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
#!/bin/bash -e
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
npm install
|
|
4
|
+
git diff --quiet
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
BRANCH=$(git symbolic-ref --short HEAD)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
if [ "$BRANCH" == 'master' ]
|
|
9
|
+
then
|
|
10
|
+
npx standard-version
|
|
11
|
+
else
|
|
12
|
+
npx standard-version --prerelease "$(git symbolic-ref --short HEAD | sed s:/:-:g )" --skip.changelog=true
|
|
13
|
+
fi
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
git push --follow-tags origin "$BRANCH"
|
package/package.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Icon from "react-native-vector-icons/
|
|
3
|
-
import
|
|
1
|
+
import React, { useContext } from "react";
|
|
2
|
+
import Icon from "react-native-vector-icons/FontAwesome";
|
|
3
|
+
import { AppTheme } from "../../utils";
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
export const FallbackIcon = () => {
|
|
6
|
+
const { theme } = useContext(AppTheme);
|
|
7
|
+
const { COLORS } = theme;
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
<Icon
|
|
9
|
-
name="images"
|
|
10
|
-
size={size}
|
|
11
|
-
color={color}
|
|
12
|
-
/>
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
FallbackIcon.propTypes = {
|
|
16
|
-
size: PropTypes.number,
|
|
17
|
-
color: PropTypes.string,
|
|
9
|
+
return <Icon name="image" size={25} color={COLORS.MONO4} />;
|
|
18
10
|
};
|
|
@@ -33,7 +33,7 @@ const ResponsiveImageBase = (props) => {
|
|
|
33
33
|
|
|
34
34
|
const placeholderStyle = {
|
|
35
35
|
...StyleSheet.absoluteFillObject,
|
|
36
|
-
backgroundColor: CustomFallBackBackground
|
|
36
|
+
backgroundColor: (CustomFallBackIcon && CustomFallBackBackground) ?? COLORS.MONO6,
|
|
37
37
|
justifyContent: 'center',
|
|
38
38
|
alignItems: 'center',
|
|
39
39
|
};
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
TouchableOpacityProps,
|
|
10
10
|
} from 'react-native';
|
|
11
11
|
import Icon from 'react-native-vector-icons/FontAwesome';
|
|
12
|
-
import MaterialIcon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
13
12
|
import {
|
|
14
13
|
AppTheme,
|
|
15
14
|
getImageMetadata,
|
|
@@ -75,12 +74,6 @@ const SecondaryStoryCardNewBase = (props) => {
|
|
|
75
74
|
</View>
|
|
76
75
|
);
|
|
77
76
|
|
|
78
|
-
const showMaterialIcon = (name) => (
|
|
79
|
-
<View style={styles.storyType}>
|
|
80
|
-
<MaterialIcon name={name} size={14} color={COLORS.MONO7}/>
|
|
81
|
-
</View>
|
|
82
|
-
)
|
|
83
|
-
|
|
84
77
|
const showStoryType = () => {
|
|
85
78
|
switch (story['story-template']) {
|
|
86
79
|
case 'text':
|
|
@@ -91,8 +84,6 @@ const SecondaryStoryCardNewBase = (props) => {
|
|
|
91
84
|
return showIcon('play');
|
|
92
85
|
case 'live-blog':
|
|
93
86
|
return showLiveBlogIcon();
|
|
94
|
-
case 'review':
|
|
95
|
-
return showMaterialIcon('star-face')
|
|
96
87
|
default:
|
|
97
88
|
null;
|
|
98
89
|
}
|