1 |
- "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=BaseContainer;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _Types=_interopRequireDefault(require("../../lib/Types"));var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\BaseContainer\\index.js";function BaseContainer(props){var selected=props.selected,width=props.width,height=props.height,overflow=props.overflow,shadowColor=props.shadowColor,shadowWidth=props.shadowWidth,shadowHeight=props.shadowHeight,shadowOpacity=props.shadowOpacity,shadowRadius=props.shadowRadius,backgroundColor=props.backgroundColor,restProps=(0,_objectWithoutProperties2["default"])(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:28}}));}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)};
|