1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
8 |
|
9 | var _react = require('react');
|
10 |
|
11 | var _react2 = _interopRequireDefault(_react);
|
12 |
|
13 | var _TabBarRootNode = require('./TabBarRootNode');
|
14 |
|
15 | var _TabBarRootNode2 = _interopRequireDefault(_TabBarRootNode);
|
16 |
|
17 | var _TabBarTabsNode = require('./TabBarTabsNode');
|
18 |
|
19 | var _TabBarTabsNode2 = _interopRequireDefault(_TabBarTabsNode);
|
20 |
|
21 | var _SaveRef = require('./SaveRef');
|
22 |
|
23 | var _SaveRef2 = _interopRequireDefault(_SaveRef);
|
24 |
|
25 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
26 |
|
27 | function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
28 |
|
29 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
30 |
|
31 | function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
32 |
|
33 | function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : _defaults(subClass, superClass); } |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | var TabBar = function (_React$Component) {
|
41 | _inherits(TabBar, _React$Component);
|
42 |
|
43 | function TabBar() {
|
44 | _classCallCheck(this, TabBar);
|
45 |
|
46 | return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
|
47 | }
|
48 |
|
49 | TabBar.prototype.render = function render() {
|
50 | var _this2 = this;
|
51 |
|
52 | return _react2["default"].createElement(
|
53 | _SaveRef2["default"],
|
54 | null,
|
55 | function (saveRef) {
|
56 | return _react2["default"].createElement(
|
57 | _TabBarRootNode2["default"],
|
58 | _extends({ saveRef: saveRef }, _this2.props),
|
59 | _react2["default"].createElement(_TabBarTabsNode2["default"], _extends({ saveRef: saveRef }, _this2.props))
|
60 | );
|
61 | }
|
62 | );
|
63 | };
|
64 |
|
65 | return TabBar;
|
66 | }(_react2["default"].Component);
|
67 |
|
68 | exports["default"] = TabBar;
|
69 | module.exports = exports['default']; |
\ | No newline at end of file |