import { coolDownAsync , warmUpAsync } from 'expo-web-browser' ; import { useEffect } from 'react' ; import { Platform } from 'react-native' ; see https remarks example export function useWarmBrowser ( browser ? ) { useEffect ( ( ) => { if ( Platform . OS !== 'android' ) { return ; } if ( browser ) { warmUpAsync ( browser ) ; } return ( ) => { coolDownAsync ( browser ) ; } ; } , [ browser ] ) ; }