Warm up and cool down and android browser WebBrowser
Other hooks — Usage — Changelog
yarn add @use-expo/web-browser expo-web-browser
// full hook
useWarmBrowser('com.android.chrome');
import { useBrowsers, useWarmBrowser } from '@use-expo/web-browser';
import { Text, View } from 'react-native';
function App() {
const browsers = useBrowsers();
useWarmBrowser(browsers?.[0]);
return <View />;
}
function useWarmBrowser(browser: string): void;
with ❤️ byCedric