"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;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 _Module2=_interopRequireDefault(require("../lib/Module"));var _reactNative=require("react-native");var _Types=_interopRequireDefault(require("../lib/Types"));var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\Button.js";var ButtonComp=function(_Module){(0,_inherits2["default"])(ButtonComp,_Module);function ButtonComp(props){(0,_classCallCheck2["default"])(this,ButtonComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(ButtonComp).call(this,props));}(0,_createClass2["default"])(ButtonComp,[{key:"press",value:function press(){console.log("######You must over write this function@@@@@");}},{key:"display",value:function display(){var _ref=this.props.style||'',container=_ref.container,color=_ref.color;return _react["default"].createElement(_reactNative.View,{key:Math.random(),style:container||defaultButton.container,__source:{fileName:_jsxFileName,lineNumber:18}},_react["default"].createElement(_reactNative.Button,{onPress:this.props.press||this.press,title:this.props.title||"Submit",color:this.props.color||"#03DAC6",accessibilityLabel:"Learn more about this purple button",__source:{fileName:_jsxFileName,lineNumber:19}}));}}]);return ButtonComp;}(_Module2["default"]);exports["default"]=ButtonComp;ButtonComp.Inputs={title:new _Types["default"].Text().require()["default"]('Submit'),color:new _Types["default"].Text().require().color()["default"]('#03DAC6')};var defaultButton=_reactNative.StyleSheet.create({container:{}});