3
0

index.js 3.1 KB

1
  1. "use strict";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 _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));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 _Module2=_interopRequireDefault(require("../../lib/Module"));var _Types=_interopRequireDefault(require("../../lib/Types"));var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\BaseContainer\\index.js";var BaseContainer=function(_Module){(0,_inherits2["default"])(BaseContainer,_Module);function BaseContainer(props){(0,_classCallCheck2["default"])(this,BaseContainer);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(BaseContainer).call(this,props));}(0,_createClass2["default"])(BaseContainer,[{key:"render",value:function render(){var _this$props=this.props,selected=_this$props.selected,width=_this$props.width,height=_this$props.height,overflow=_this$props.overflow,shadowColor=_this$props.shadowColor,shadowWidth=_this$props.shadowWidth,shadowHeight=_this$props.shadowHeight,shadowOpacity=_this$props.shadowOpacity,shadowRadius=_this$props.shadowRadius,backgroundColor=_this$props.backgroundColor,restProps=(0,_objectWithoutProperties2["default"])(_this$props,["selected","width","height","overflow","shadowColor","shadowWidth","shadowHeight","shadowOpacity","shadowRadius","backgroundColor"]);if(!backgroundColor)backgroundColor='';if(!shadowColor)shadowColor='';if(!shadowWidth)shadowWidth=0;if(!shadowHeight)shadowHeight=0;return _react["default"].createElement(_reactNative.View,(0,_extends2["default"])({},restProps,{style:{width:width,height:height,overflow:overflow,backgroundColor:backgroundColor,shadowColor:shadowColor,shadowOffset:{width:shadowWidth,height:shadowHeight},shadowOpacity:shadowOpacity,shadowRadius:shadowRadius},__source:{fileName:_jsxFileName,lineNumber:33}}));}}]);return BaseContainer;}(_Module2["default"]);exports["default"]=BaseContainer;BaseContainer.Inputs={width:new _Types["default"].Integer(),height:new _Types["default"].Integer(),overflow:new _Types["default"].Integer().require()["default"]('hidden'),backgroundColor:new _Types["default"].Text().require().color(),shadowColor:new _Types["default"].Text().require().color()["default"](""),shadowWidth:new _Types["default"].Integer().require(),shadowHeight:new _Types["default"].Integer().require(),shadowOpacity:new _Types["default"].Real()["default"](0),shadowRadius:new _Types["default"].Integer()["default"](5)};