feat(HelpButton): Mobile support.

This commit is contained in:
Hristo Terezov
2019-10-14 07:35:39 -07:00
parent f295f60bea
commit 0a06e256b7
10 changed files with 97 additions and 51 deletions
@@ -0,0 +1,17 @@
// @flow
import { Linking } from 'react-native';
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);
});
}