expo-web-browser
Version:
Provides access to the system's web browser and supports handling redirects. On iOS, it uses SFSafariViewController or ASWebAuthenticationSession, depending on the method you call, and on Android it uses ChromeCustomTabs. As of iOS 11, SFSafariViewControl
20 lines (13 loc) • 516 B
text/typescript
import { ConfigPlugin, createRunOncePlugin } from 'expo/config-plugins';
import { withWebBrowserAndroid, PluginConfig } from './withWebBrowserAndroid';
const pkg = require('expo-web-browser/package.json');
const withWebBrowser: ConfigPlugin<PluginConfig | null> = (config, props) => {
if (!props) {
return config;
}
if (!props.experimentalLauncherActivity) {
return config;
}
return withWebBrowserAndroid(config);
};
export default createRunOncePlugin(withWebBrowser, pkg.name, pkg.version);