import { getCustomTabsSupportingBrowsersAsync } from 'expo-web-browser' ; import { useEffect , useState } from 'react' ; import { Platform } from 'react-native' ; see https remarks example export function useBrowsers ( ) { const [ browsers , setBrowsers ] = useState < string [ ] > ( [ ] ) ; useEffect ( ( ) => { if ( Platform . OS !== 'android' ) { return ; } getCustomTabsSupportingBrowsersAsync ( ) . then ( result => setBrowsers ( result . browserPackages ) ) ; } , [ ] ) ; return browsers ; }