@quintype/native-components 2.20.20 → 2.20.22
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,15 @@
|
|
|
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.22](https://github.com/quintype/native-components/compare/v2.20.21...v2.20.22) (2024-02-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **Misc.:** Regression Feb '24 ([#221](https://github.com/quintype/native-components/issues/221)) ([40262cd](https://github.com/quintype/native-components/commit/40262cdfca550796b7696021e04b73c22708d98e))
|
|
11
|
+
|
|
12
|
+
### [2.20.21](https://github.com/quintype/native-components/compare/v2.20.20...v2.20.21) (2024-02-07)
|
|
13
|
+
|
|
5
14
|
### [2.20.20](https://github.com/quintype/native-components/compare/v2.20.19...v2.20.20) (2024-01-22)
|
|
6
15
|
|
|
7
16
|
### [2.20.19](https://github.com/quintype/native-components/compare/v2.20.18...v2.20.19) (2023-12-29)
|
package/package.json
CHANGED
|
@@ -3,17 +3,20 @@ import React, { useContext } from 'react';
|
|
|
3
3
|
import { AppTheme } from "../../utils/context";
|
|
4
4
|
import PropTypes from "prop-types";
|
|
5
5
|
|
|
6
|
-
const PremiumIcon = ({name, style, size, color}) => {
|
|
6
|
+
const PremiumIcon = ({name, style, size, color, fallbackToCrown = false}) => {
|
|
7
7
|
const { theme } = useContext(AppTheme);
|
|
8
8
|
const { COLORS } = theme;
|
|
9
|
+
const iconName = name === "none" && fallbackToCrown ? "crown" : name;
|
|
10
|
+
|
|
9
11
|
color = color ?? COLORS.BRAND_1;
|
|
10
|
-
return <MaterialIcon name={
|
|
12
|
+
return <MaterialIcon name={iconName} style={style} size={size} color={color} />
|
|
11
13
|
}
|
|
12
14
|
PremiumIcon.propTypes = {
|
|
13
15
|
name: PropTypes.string.isRequired,
|
|
14
16
|
size: PropTypes.any.isRequired,
|
|
15
17
|
color: PropTypes.string,
|
|
16
|
-
style: PropTypes.any
|
|
18
|
+
style: PropTypes.any,
|
|
19
|
+
fallbackToCrown: PropTypes.bool,
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
|
|
@@ -42,7 +42,7 @@ export const PDFReader = ({ card, share }) => {
|
|
|
42
42
|
<Modal animationType="slide" transparent={false} visible={modalVisible}>
|
|
43
43
|
<View style={headerStyles}>
|
|
44
44
|
<TouchableOpacity style={styles.headerButton} onPress={hideModal}>
|
|
45
|
-
<IonIcon name="
|
|
45
|
+
<IonIcon name="close" size={24} color={COLORS.BRAND_WHITE} />
|
|
46
46
|
</TouchableOpacity>
|
|
47
47
|
</View>
|
|
48
48
|
<Pdf
|
|
@@ -5,14 +5,13 @@ export const pdfStyles = (COLORS, FONT_SIZE, DARK_MODE) => StyleSheet.create({
|
|
|
5
5
|
flex: 1,
|
|
6
6
|
},
|
|
7
7
|
header: {
|
|
8
|
-
height: 75,
|
|
9
8
|
flexDirection: 'row',
|
|
10
|
-
|
|
9
|
+
padding: 10,
|
|
11
10
|
justifyContent: 'space-between',
|
|
12
11
|
alignItems: 'center',
|
|
13
12
|
},
|
|
14
13
|
headerButton: {
|
|
15
|
-
paddingTop:
|
|
14
|
+
paddingTop: 10,
|
|
16
15
|
},
|
|
17
16
|
pdfText: {
|
|
18
17
|
fontSize: FONT_SIZE.h2,
|