You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213141516 |
- import { Linking } from 'react-native';
-
- // @ts-ignore
- import logger from './logger';
-
- /**
- * Opens URL in the browser.
- *
- * @param {string} url - The URL to be opened.
- * @returns {void}
- */
- export function openURLInBrowser(url: string) {
- Linking.openURL(url).catch(error => {
- logger.error(`An error occurred while trying to open ${url}`, error);
- });
- }
|