Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 1.73 KB

use-warm-browser.md

File metadata and controls

61 lines (50 loc) · 1.73 KB

useWarmBrowser

Warm up and cool down and android browser WebBrowser

releases builds demo

Other hooks   —   Usage   —   Changelog


yarn add @use-expo/web-browser expo-web-browser

Usage

// full hook
useWarmBrowser('com.android.chrome');

Example

import { useBrowsers, useWarmBrowser } from '@use-expo/web-browser';
import { Text, View } from 'react-native';

function App() {
  const browsers = useBrowsers();
  useWarmBrowser(browsers?.[0]);

  return <View />;
}

API

function useWarmBrowser(browser: string): void;

with ❤️ byCedric