react-native-fit-image
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -12,3 +12,8 @@ Object.defineProperty(exports,"__esModule",{value:true});var _jsxFileName='src/FitImage.js';var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _react=require('react');var _react2=_interopRequireDefault(_react); | ||
indicatorColor:_react.PropTypes.string, | ||
indicatorSize:_reactNative.ActivityIndicator.propTypes.size, | ||
indicatorSize:_react.PropTypes.oneOfType( | ||
[ | ||
_react.PropTypes.oneOf(['small','large']), | ||
_react.PropTypes.number]), | ||
originalHeight:_react.PropTypes.number, | ||
@@ -123,7 +128,7 @@ originalWidth:_react.PropTypes.number}); | ||
{ | ||
if(this.state.isLoading&&this.props.indicator){ | ||
if(this.state.isLoading&&this.props.indicator!==false){ | ||
return ( | ||
_react2.default.createElement(_reactNative.ActivityIndicator,{ | ||
color:this.props.indicatorColor, | ||
size:this.props.indicatorSize,__source:{fileName:_jsxFileName,lineNumber:124}}));} | ||
size:this.props.indicatorSize,__source:{fileName:_jsxFileName,lineNumber:129}}));} | ||
@@ -138,3 +143,3 @@ | ||
return ( | ||
_react2.default.createElement(_reactNative.Image,{ | ||
_react2.default.createElement(_reactNative.Image,_extends({ | ||
source:this.props.source, | ||
@@ -149,3 +154,4 @@ style:[ | ||
onLoad:function onLoad(){_this3.setState({isLoading:false});}, | ||
onLoadStart:function onLoadStart(){_this3.setState({isLoading:true});},__source:{fileName:_jsxFileName,lineNumber:136}}, | ||
onLoadStart:function onLoadStart(){_this3.setState({isLoading:true});}}, | ||
this.props,{__source:{fileName:_jsxFileName,lineNumber:141}}), | ||
@@ -152,0 +158,0 @@ this.renderChildren()));}}]);return FitImage;}(_reactNative.Image); |
{ | ||
"name": "react-native-fit-image", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "Responsive image component to fit perfectly itself.", | ||
@@ -8,2 +8,3 @@ "main": "dist/FitImage.js", | ||
"build": "babel src -d dist", | ||
"build-and-publish": "npm run build && npm publish", | ||
"test": "tape -r babel-register -r react-native-mock/mock test/**/*.js | tap-diff" | ||
@@ -10,0 +11,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10673
141