@sphereon/ui-components.ssi-react-native 0.1.2-unstable.4 → 0.1.2

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.
@@ -4,10 +4,11 @@ import FastImage from 'react-native-fast-image';
4
4
  import SSIPlaceholderLogo from '../SSIPlaceholderLogo';
5
5
  const SSILogo = (props) => {
6
6
  const { logo, color = logoColors.default, size = 32, style } = props;
7
+ const source = { ...logo, priority: FastImage.priority.high };
7
8
  return logo ? (<FastImage style={{
8
9
  ...style,
9
- aspectRatio: logo?.dimensions && calculateAspectRatio(logo?.dimensions.width, logo?.dimensions.height),
10
- height: 32,
11
- }} source={logo}/>) : (<SSIPlaceholderLogo style={style} size={size} color={color}/>);
10
+ ...(logo?.dimensions && { aspectRatio: calculateAspectRatio(logo?.dimensions.width, logo?.dimensions.height) }),
11
+ height: size,
12
+ }} resizeMode={FastImage.resizeMode.contain} source={source}/>) : (<SSIPlaceholderLogo style={style} size={size} color={color}/>);
12
13
  };
13
14
  export default SSILogo;
@@ -23,6 +23,12 @@ export const fontStyle = {
23
23
  fontWeight: fontWeight[600],
24
24
  lineHeight: lineHeight[700],
25
25
  },
26
+ h1Regular: {
27
+ fontFamily: 'Poppins-Regular',
28
+ fontSize: fontSize[700],
29
+ fontWeight: fontWeight[400],
30
+ lineHeight: lineHeight[700],
31
+ },
26
32
  h2Regular: {
27
33
  fontFamily: 'Poppins-Regular',
28
34
  fontSize: fontSize[600],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.ssi-react-native",
3
3
  "private": false,
4
- "version": "0.1.2-unstable.4+ecca694",
4
+ "version": "0.1.2",
5
5
  "description": "SSI UI components for React-Native",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@react-native-community/blur": "^4.3.0",
32
- "@sphereon/ui-components.core": "0.1.2-unstable.4+ecca694",
32
+ "@sphereon/ui-components.core": "0.1.2",
33
33
  "react-native-fast-image": "^8.6.3",
34
34
  "react-native-size-matters": "^0.4.0",
35
35
  "react-native-svg": "13.4.0",
@@ -46,5 +46,5 @@
46
46
  "react": ">= 16.8.0",
47
47
  "react-native": ">= 0.64.0"
48
48
  },
49
- "gitHead": "ecca694b5b1e0d1996763266f25f7374b718a48a"
49
+ "gitHead": "45285dfa116751f1cda0fef607c8150031c87db8"
50
50
  }