use-background-expo-ota-updates
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

use-background-expo-ota-updates 🥯

Simple, accessible hook for managing OTA updates for your expo app

Install

npm install use-background-expo-ota-updates

Usage

import { useBackgroundExpoOTAUpdates } from "use-background-expo-ota-updates";

export default function App() {
  const [updateReady, reloadToApply] = useBackgroundExpoOTAUpdates({
    checkForUpdateOnLaunch: true,
  });

  useEffect(() => {
    if (updateReady) {
      /**
       * Your logic
       */
      reloadToApply(); // Whenever you are ready
    }
  }, [updateReady]);

  return (
    <View>
      {/* <Component /> */}
    </View>
  );
}

/use-background-expo-ota-updates/

    Package Sidebar

    Install

    npm i use-background-expo-ota-updates

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • rishav394