# use-background-expo-ota-updates

> A hook to manage Expo background and initial Over-The-Air updates

Latest version **1.0.1** (published 2020-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-background-expo-ota-updates
pnpm add use-background-expo-ota-updates
yarn add use-background-expo-ota-updates
bun add use-background-expo-ota-updates
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-09-07 |
| First published | 2020-09-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | rishav394 |
| Maintainers | rishav394 |

## Links

- npm: https://www.npmjs.com/package/use-background-expo-ota-updates
- Repository: https://github.com/rishav394/use-background-expo-ota-updates
- Homepage: https://github.com/rishav394/use-background-expo-ota-updates#readme
- Issues: https://github.com/rishav394/use-background-expo-ota-updates/issues
- npm.io page: https://npm.io/package/use-background-expo-ota-updates

## Dependencies (2)

- [expo-updates](https://npm.io/package/expo-updates.md) ^0.2.14
- [react-native](https://npm.io/package/react-native.md) ^0.63.2

## Recent versions

- 1.0.1 (latest) — 2020-09-07
- 1.0.0 — 2020-09-07

## README

# use-background-expo-ota-updates 🥯

> Simple, accessible hook for managing OTA updates for your expo app

## Install

```sh
npm install use-background-expo-ota-updates
```

## Usage

```jsx
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>
  );
}

```

---
_Source: https://npm.io/package/use-background-expo-ota-updates · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
