xdl
Version:
The Expo Development Library
34 lines (33 loc) • 926 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.learnMore = learnMore;
function _chalk() {
const data = _interopRequireDefault(require("chalk"));
_chalk = function () {
return data;
};
return data;
}
function _terminalLink() {
const data = _interopRequireDefault(require("terminal-link"));
_terminalLink = function () {
return data;
};
return data;
}
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* When linking isn't available, format the learn more link better.
*
* @example Learn more: https://expo.io
* @example [Learn more](https://expo.io)
* @param url
*/
function learnMore(url) {
return (0, _terminalLink().default)(_chalk().default.underline('Learn more.'), url, {
fallback: (text, url) => `Learn more: ${_chalk().default.underline(url)}`
});
}
//# sourceMappingURL=TerminalLink.js.map
;