@livelike/react-native
Version:
LiveLike React Native package
18 lines • 775 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 React from 'react';
import { Text } from 'react-native';
import { useCustomFontStyle } from '../../hooks/useCustomFontStyle';
export function LLText(_ref) {
let {
children,
style: styleProp,
...props
} = _ref;
const styles = useCustomFontStyle({
style: styleProp
});
return /*#__PURE__*/React.createElement(Text, _extends({
style: styles
}, props), children);
}
//# sourceMappingURL=LLText.js.map