var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _propTypes=_interopRequireDefault(require("prop-types"));var _jsxFileName="/Users/tima/Tima/react-native-timacare/src/components/MButton.tsx";function _callSuper(t,o,e){return o=(0,_getPrototypeOf2.default)(o),(0,_possibleConstructorReturn2.default)(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],(0,_getPrototypeOf2.default)(t).constructor):o.apply(t,e));}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}var MButton=function(_React$Component){function MButton(props){(0,_classCallCheck2.default)(this,MButton);return _callSuper(this,MButton,[props]);}(0,_inherits2.default)(MButton,_React$Component);return(0,_createClass2.default)(MButton,[{key:"render",value:function render(){var _this=this;return _react.default.createElement(_reactNative.TouchableOpacity,(0,_extends2.default)({},this.props,{activeOpacity:0.9,onPress:function onPress(){if(_this.disable!==true&&_this.props.onPress!==undefined){_this.disable=true;_this.props.onPress();setTimeout(function(){_this.disable=false;},100);}},__self:this,__source:{fileName:_jsxFileName,lineNumber:12,columnNumber:7}}));}}]);}(_react.default.Component);MButton.propTypes={onPress:_propTypes.default.func,children:_propTypes.default.any,styles:_propTypes.default.array};var _default=exports.default=MButton;
//# sourceMappingURL=MButton.js.map