Col.js 2.0 KB

1
  1. var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");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=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\src\\modules\\Col.js";var Col=function(_React$Component){(0,_inherits2.default)(Col,_React$Component);function Col(props){(0,_classCallCheck2.default)(this,Col);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(Col).call(this,props));}(0,_createClass2.default)(Col,[{key:"render",value:function render(){var _this$props=this.props,children=_this$props.children,selected=_this$props.selected,restProps=(0,_objectWithoutProperties2.default)(_this$props,["children","selected"]);var styl=[styles.column];if(selected)styl.push(styles.selected);return _react.default.createElement(_reactNative.View,(0,_extends2.default)({},restProps,{style:styl,__source:{fileName:_jsxFileName,lineNumber:21}}),children);}}]);return Col;}(_react.default.Component);exports.default=Col;var styles=_reactNative.StyleSheet.create({column:{flex:1,justifyContent:'flex-start'},selected:{shadowColor:"rgba(250,10,0,0.81)",shadowOffset:{width:0,height:4},shadowOpacity:0.30,shadowRadius:4.65,elevation:8}});