UNPKG

react95-native

Version:

Refreshed Windows 95 style UI components for your React Native app

23 lines (20 loc) 839 B
function _extends() { _extends = Object.assign || 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 { withTheme } from '../../core/theming'; import { Text } from '../..'; // TODO: separate Anchor props from React95 Text component const Anchor = ({ children, style, theme, underline = false, ...rest }) => { return /*#__PURE__*/React.createElement(Text, _extends({ style: [{ color: theme.anchor, textDecorationLine: underline ? 'underline' : 'none' }, style] }, rest), children); }; export default withTheme(Anchor); //# sourceMappingURL=Anchor.js.map