12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
|
// @flow
|
||
|
|
||
|
import * as React from 'react';
|
||
|
import * as WebBrowser from 'expo-web-browser';
|
||
|
|
||
|
export function openBrowser(url: string, color: string) {
|
||
|
WebBrowser.openBrowserAsync(url, {
|
||
|
toolbarColor: color,
|
||
|
enableBarCollapsing: true,
|
||
|
});
|
||
|
}
|