How to use the expo-web-browser.openBrowserAsync function in expo-web-browser

To help you get started, we’ve selected a few expo-web-browser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github EvanBacon / react-navigation-web-responsive-tabs-demo / screens / HomeScreen.js View on Github external
function handleHelpPress() {
  WebBrowser.openBrowserAsync(
    'https://docs.expo.io/versions/latest/workflow/up-and-running/#cant-see-your-changes',
  );
}
github Tosuke / submarine / src / blocs / authBloc.ts View on Github external
        switchMap(async url => openBrowserAsync(url.href)),
      )
github expo / expo / apps / native-component-list / src / screens / WebBrowserScreen.tsx View on Github external
handleOpenWebUrlClicked = async () => {
    const args = {
      showTitle: this.state.showTitle,
      toolbarColor: this.state.toolbarColor && `#${this.state.toolbarColor}`,
      controlsColor: this.state.controlsColorText && `#${this.state.controlsColorText}`,
      browserPackage: this.state.selectedPackage,
      enableBarCollapsing: this.state.barCollapsing,
    };
    const result = await WebBrowser.openBrowserAsync(url, args);
    setTimeout(() => Alert.alert('Result', JSON.stringify(result, null, 2)), 1000);
  }
github expo / expo / docs / static / examples / unversioned / web-browser.js View on Github external
const _handlePressButtonAsync = async () => {
    let result = await WebBrowser.openBrowserAsync('https://expo.io');
    setResult(result);
  };
  return (
github RocketChat / Rocket.Chat.ReactNative / app / utils / openLink.js View on Github external
const openLink = (url, theme = 'light') => WebBrowser.openBrowserAsync(url, {
	toolbarColor: themes[theme].headerBackground,
	controlsColor: themes[theme].headerTintColor,
	collapseToolbar: true,
	showTitle: true
});
github serlo / serlo-abc / src / components / screens / DataPolicy.tsx View on Github external
onPress={() =>
                WebBrowser.openBrowserAsync(
                  language === Language.german
                    ? 'https://abc-app.serlo.org/privacy-de.html'
                    : 'https://abc-app.serlo.org/privacy-en.html'
                )
              }
github tasitlabs / tasit / wallet-example / screens / HomeScreen.tsx View on Github external
_handleLearnMorePress = () => {
    WebBrowser.openBrowserAsync(
      "https://docs.expo.io/versions/latest/guides/development-mode"
    );
  };
  _handleHelpPress = () => {
github sysgears / apollo-universal-starter-kit / modules / authentication / client-react / social / containers / SocialAuthComponent.native.tsx View on Github external
const redirectToSocialLogin = (authUrl: string) => {
  const absUrl = createAuthRedirectUrl(authUrl);
  if (Platform.OS === 'ios') {
    WebBrowser.openBrowserAsync(absUrl);
  } else {
    Linking.openURL(absUrl);
  }
};
github Tosuke / submarine / src / blocs / authBloc.ts View on Github external
    this._linkToSignInURL$.pipe(switchMap(() => openBrowserAsync(endpoint))).subscribe()

expo-web-browser

Provides access to the system's web browser and supports handling redirects. On iOS, it uses SFSafariViewController or SFAuthenticationSession, depending on the method you call, and on Android it uses ChromeCustomTabs. As of iOS 11, SFSafariViewController

MIT
Latest version published 3 months ago

Package Health Score

91 / 100
Full package analysis