|
@@ -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}
|