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.
@@ -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
- ? require('./assets/images/image_default.png')
6692
- : source || require('./assets/images/image_default.png'));
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 &&