@sphereon/ui-components.ssi-react-native 0.1.3-unstable.14 → 0.1.3-unstable.15

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.
@@ -9,7 +9,7 @@ const SSICredentialCardView = (props) => {
9
9
  const { credentialTitle, credentialSubtitle, logo } = props.header ?? {};
10
10
  const { issuerName, properties } = props.body ?? {};
11
11
  const { credentialStatus, expirationDate } = props.footer ?? {};
12
- const { backgroundColor = credentialCardColors.default, backgroundImage = { uri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=' }, textColor = backgroundColors.primaryLight, } = props.display ?? {};
12
+ const { backgroundColor = credentialCardColors.default, backgroundImage, textColor = backgroundColors.primaryLight, } = props.display ?? {};
13
13
  const getPropertyElementsFrom = (properties) => {
14
14
  return properties.slice(0, 2).map((property, index) => (<View key={index} style={{
15
15
  ...(properties.length > 1 && { width: 140 }),
@@ -23,9 +23,10 @@ const SSICredentialCardView = (props) => {
23
23
  <BackgroundImage source={backgroundImage}>
24
24
  <AlphaContainer>
25
25
  {header && (<HeaderContainer>
26
- <LogoContainer>
27
- <SSILogo logo={logo} color={textColor}/>
28
- </LogoContainer>
26
+ {(!backgroundImage || logo) &&
27
+ <LogoContainer>
28
+ <SSILogo logo={logo} color={textColor}/>
29
+ </LogoContainer>}
29
30
  {credentialTitle && (<TitleContainer>
30
31
  <CredentialTitleText style={{ color: textColor }} numberOfLines={2}>
31
32
  {credentialTitle}
@@ -3,10 +3,11 @@ import { credentialCardColors } from '@sphereon/ui-components.core';
3
3
  import SSILogo from '../../assets/logos/SSILogo';
4
4
  import { SSICredentialMiniCardViewBackgroundImageStyled as BackgroundImage, SSICredentialMiniCardViewContainerStyled as Container, } from '../../../styles/components';
5
5
  const SSICredentialMiniCardView = (props) => {
6
- const { backgroundColor = credentialCardColors.default, backgroundImage = { uri: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=' }, logo, logoColor, style } = props;
6
+ const { backgroundColor = credentialCardColors.default, backgroundImage, logo, logoColor, style } = props;
7
7
  return (<Container style={[style, { backgroundColor }]}>
8
8
  <BackgroundImage source={backgroundImage}>
9
- <SSILogo logo={logo} color={logoColor}/>
9
+ {(!backgroundImage || logo) &&
10
+ <SSILogo logo={logo} color={logoColor}/>}
10
11
  </BackgroundImage>
11
12
  </Container>);
12
13
  };
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.3-unstable.14+af3a5ae",
4
+ "version": "0.1.3-unstable.15+88a373a",
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.3-unstable.14+af3a5ae",
32
+ "@sphereon/ui-components.core": "0.1.3-unstable.15+88a373a",
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": "af3a5aea914a8d012b69cb5cf5ad1ad6141711cb"
49
+ "gitHead": "88a373a5f9fb7b863e412030eedc651350c99187"
50
50
  }