29 lines
981 B
JavaScript
29 lines
981 B
JavaScript
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
|
|
import { useTheme } from '@react-navigation/native';
|
|
import * as React from 'react';
|
|
import { StyleSheet, Text } from 'react-native';
|
|
export function Label(_ref) {
|
|
let {
|
|
tintColor,
|
|
style,
|
|
...rest
|
|
} = _ref;
|
|
const {
|
|
colors,
|
|
fonts
|
|
} = useTheme();
|
|
return /*#__PURE__*/React.createElement(Text, _extends({
|
|
numberOfLines: 1
|
|
}, rest, {
|
|
style: [fonts.regular, styles.label, {
|
|
color: tintColor === undefined ? colors.text : tintColor
|
|
}, style]
|
|
}));
|
|
}
|
|
const styles = StyleSheet.create({
|
|
label: {
|
|
textAlign: 'center',
|
|
backgroundColor: 'transparent'
|
|
}
|
|
});
|
|
//# sourceMappingURL=Label.js.map
|