index.js 2.2 KB

1
  1. "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 _reactNativeElements=require("react-native-elements");var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\Icon\\index.js";var IconComp=function(_Module){(0,_inherits2["default"])(IconComp,_Module);function IconComp(props){(0,_classCallCheck2["default"])(this,IconComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(IconComp).call(this,props));}(0,_createClass2["default"])(IconComp,[{key:"press",value:function press(e){console.log("######You must over write this function@@@@@");}},{key:"display",value:function display(){var _this=this;return _react["default"].createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:19}},_react["default"].createElement(_reactNativeElements.Icon,{name:this.props.name,type:this.props.type,color:this.props.color,onPress:function onPress(e){return _this.press(e);},__source:{fileName:_jsxFileName,lineNumber:20}}));}}]);return IconComp;}(_Module2["default"]);exports["default"]=IconComp;IconComp.Inputs={name:new _Types["default"].Text().require()["default"]("bookmark"),color:new _Types["default"].Text().require().color()["default"]('rgba(112, 112, 112, 1)'),type:new _Types["default"].Text().require()["default"]('material'),width:new _Types["default"].Integer().require(),height:new _Types["default"].Integer().require()};