sapo-components-ui-rn 1.1.83 → 1.1.84
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/dist/assets/images/index.d.ts +1 -0
- package/dist/assets/images/index.ts +1 -0
- package/dist/image_default.png +0 -0
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/index.ts +1 -0
- package/src/components/Image/index.tsx +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IMAGE_DEFAULT: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const IMAGE_DEFAULT = require('./image_default.png');
|
|
Binary file
|
package/dist/index.esm.js
CHANGED
|
@@ -6673,6 +6673,8 @@ var styles$9 = StyleSheet.create({
|
|
|
6673
6673
|
},
|
|
6674
6674
|
});
|
|
6675
6675
|
|
|
6676
|
+
var IMAGE_DEFAULT = require('./image_default.png');
|
|
6677
|
+
|
|
6676
6678
|
var getSource = function (source) {
|
|
6677
6679
|
var newSource = source;
|
|
6678
6680
|
if (typeof source === 'string') {
|
|
@@ -6688,8 +6690,8 @@ var Image = function (props) {
|
|
|
6688
6690
|
var image = getSource(disableDefaultImage
|
|
6689
6691
|
? source
|
|
6690
6692
|
: hasError
|
|
6691
|
-
?
|
|
6692
|
-
: source ||
|
|
6693
|
+
? IMAGE_DEFAULT
|
|
6694
|
+
: source || IMAGE_DEFAULT);
|
|
6693
6695
|
var ImageComponent = children ? ImageBackground : Image$2;
|
|
6694
6696
|
// const getUriImage = (uri: string) => {
|
|
6695
6697
|
// return uri !== null &&
|