1 |
- "use strict";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\\Konstanitnos\\Development\\TrapiLib\\modules\\Row.js";var Row=function(_React$Component){(0,_inherits2["default"])(Row,_React$Component);function Row(props){(0,_classCallCheck2["default"])(this,Row);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Row).call(this,props));}(0,_createClass2["default"])(Row,[{key:"render",value:function render(){var _this$props=this.props,children=_this$props.children,selected=_this$props.selected,depth=_this$props.depth,restProps=(0,_objectWithoutProperties2["default"])(_this$props,["children","selected","depth"]);console.log(depth);var styl=[styles.row];if(depth!==2)styl.push(styles.rowStretch);if(selected)styl.push(styles.selected);return _react["default"].createElement(_reactNative.View,(0,_extends2["default"])({},restProps,{style:styl,__source:{fileName:_jsxFileName,lineNumber:23}}),children);}}]);return Row;}(_react["default"].Component);exports["default"]=Row;var styles=_reactNative.StyleSheet.create({row:{alignItems:'flex-start',flexDirection:'row',overflow:'hidden'},rowStretch:{flex:1,alignItems:'stretch'},selected:{shadowColor:"rgba(0,0,0,0.31)",shadowOffset:{width:0,height:4},shadowOpacity:0.30,shadowRadius:4.65,elevation:8}});
|