3
0
sxoinas12 5 rokov pred
rodič
commit
57796fa437
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      modules/Image.js

+ 3 - 3
modules/Image.js

@@ -16,9 +16,9 @@ export default class ImageComp extends Module {
 			resizeMode,
 			source
 		} = this.props;
-		if(!width) width = ImageComp.Inputs.width.default;
-		if(!height) height = ImageComp.Inputs.height.default;
-		if(!resizeMode) resizeMode = ImageComp.Inputs.resizeMode.default;
+		if(!width) width = ImageComp.Inputs.width.default || 100;
+		if(!height) height = ImageComp.Inputs.height.default || 100;
+		if(!resizeMode) resizeMode = ImageComp.Inputs.resizeMode.default || 'cover';
 		return 	<Image
 			          style={{width, height}}
 			          resizeMode={resizeMode}