1 | import _extends from 'babel-runtime/helpers/extends';
|
2 | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
3 | import _createClass from 'babel-runtime/helpers/createClass';
|
4 | import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
5 | import _inherits from 'babel-runtime/helpers/inherits';
|
6 | var __rest = this && this.__rest || function (s, e) {
|
7 | var t = {};
|
8 | for (var p in s) {
|
9 | if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
10 | }if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
11 | if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];
|
12 | }return t;
|
13 | };
|
14 | import React from 'react';
|
15 | import { TabBarIOS } from 'react-native';
|
16 |
|
17 | var TabBar = function (_React$Component) {
|
18 | _inherits(TabBar, _React$Component);
|
19 |
|
20 | function TabBar() {
|
21 | _classCallCheck(this, TabBar);
|
22 |
|
23 | return _possibleConstructorReturn(this, (TabBar.__proto__ || Object.getPrototypeOf(TabBar)).apply(this, arguments));
|
24 | }
|
25 |
|
26 | _createClass(TabBar, [{
|
27 | key: 'render',
|
28 | value: function render() {
|
29 | var _a = this.props,
|
30 | barTintColor = _a.barTintColor,
|
31 | tintColor = _a.tintColor,
|
32 | unselectedTintColor = _a.unselectedTintColor,
|
33 | restProps = __rest(_a, ["barTintColor", "tintColor", "unselectedTintColor"]);
|
34 | return React.createElement(TabBarIOS, _extends({ barTintColor: barTintColor, tintColor: tintColor, unselectedTintColor: unselectedTintColor }, restProps));
|
35 | }
|
36 | }]);
|
37 |
|
38 | return TabBar;
|
39 | }(React.Component);
|
40 |
|
41 | TabBar.defaultProps = {
|
42 | barTintColor: 'white',
|
43 | tintColor: '#108ee9',
|
44 | unselectedTintColor: '#888'
|
45 | };
|
46 | TabBar.Item = TabBarIOS.Item;
|
47 | export default TabBar; |
\ | No newline at end of file |