React Native openBrowserAsync() Method

Expo-web-browser provides access to the system's web browser and supports handling redirects. On Android, it uses ChromeCustomTabs and on iOS, it uses SFSafariViewController or SFAuthenticationSession, depending on the method you call. As of iOS 11, SFSafariViewController no longer shares cookies with Safari, so if you are using WebBrowser for authentication you will want to use WebBrowser.openAuthSessionAsync, and if you just want to open a webpage (such as your app privacy policy), then use WebBrowser.openBrowserAsync

NPM Package : https://www.npmjs.com/package/expo-web-browser


import{Image, Text, View, StyleSheet,Button} from 'react-native';
import {openBrowserAsync} from 'expo-web-browser';

export default function App(){
  return(
    <>

      <Button title="alert" onPress={()=>openBrowserAsync("https://google.com")}  />
   
    </>
  )
}


var styles = StyleSheet.create({
 
})