1 | var __rest = (this && this.__rest) || function (s, e) {
|
2 | var t = {};
|
3 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4 | t[p] = s[p];
|
5 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
7 | t[p[i]] = s[p[i]];
|
8 | return t;
|
9 | };
|
10 | import React from 'react';
|
11 | import { Text, } from 'react-native';
|
12 | const styles = {
|
13 | textStyle: {
|
14 | color: '#888',
|
15 | },
|
16 | };
|
17 | export default class Label extends React.Component {
|
18 | render() {
|
19 | const _a = this.props.label, { title, el, style } = _a, attributes = __rest(_a, ["title", "el", "style"]);
|
20 | if (el)
|
21 | return el;
|
22 | return (React.createElement(Text, Object.assign({ style: [styles.textStyle, style] }, attributes),
|
23 | title,
|
24 | " "));
|
25 | }
|
26 | }
|
27 |
|
\ | No newline at end of file |