@sphereon/ui-components.ssi-react-native 0.1.3-unstable.41 → 0.1.3-unstable.42
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
import { ColorValue, NativeEventSubscription, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
type Props = {
|
|
4
|
+
size: number | 'small' | 'large';
|
|
5
|
+
color?: ColorValue;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
};
|
|
8
|
+
export default class SSIActivityIndicator extends PureComponent<Props> {
|
|
9
|
+
hardwareBackPressListener: NativeEventSubscription;
|
|
10
|
+
componentDidMount: () => void;
|
|
11
|
+
componentWillUnmount: () => void;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
import { ActivityIndicator, BackHandler } from 'react-native';
|
|
3
|
+
export default class SSIActivityIndicator extends PureComponent {
|
|
4
|
+
hardwareBackPressListener;
|
|
5
|
+
componentDidMount = () => {
|
|
6
|
+
this.hardwareBackPressListener = BackHandler.addEventListener('hardwareBackPress', () => true);
|
|
7
|
+
};
|
|
8
|
+
componentWillUnmount = () => {
|
|
9
|
+
this.hardwareBackPressListener.remove();
|
|
10
|
+
};
|
|
11
|
+
render() {
|
|
12
|
+
return <ActivityIndicator style={this.props.style} size={this.props.size} color={this.props.color}/>;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
|
5
5
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
6
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
7
7
|
import SSILogo from './components/assets/logos/SSILogo';
|
|
8
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
8
9
|
export * from './styles/components/fonts';
|
|
9
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo };
|
|
10
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIActivityIndicator, };
|
package/dist/index.js
CHANGED
|
@@ -5,5 +5,6 @@ import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
|
5
5
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
6
6
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
7
7
|
import SSILogo from './components/assets/logos/SSILogo';
|
|
8
|
+
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
8
9
|
export * from './styles/components/fonts';
|
|
9
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo };
|
|
10
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIActivityIndicator, };
|
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.
|
|
4
|
+
"version": "0.1.3-unstable.42+0b192df",
|
|
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.
|
|
32
|
+
"@sphereon/ui-components.core": "0.1.3-unstable.42+0b192df",
|
|
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": "
|
|
49
|
+
"gitHead": "0b192df82e83d188d3e2f9501733b277efcd64d7"
|
|
50
50
|
}
|