UNPKG

948 BJavaScriptView Raw
1var __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};
10import React from 'react';
11import { Text, } from 'react-native';
12const styles = {
13 textStyle: {
14 color: '#888',
15 },
16};
17export 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//# sourceMappingURL=index.js.map
\No newline at end of file