# react-native-orientation-change-provider

> Simple React Native Provider component that forces a re-render when orientation changes.

Latest version **0.11.4** (published 2018-06-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-orientation-change-provider
pnpm add react-native-orientation-change-provider
yarn add react-native-orientation-change-provider
bun add react-native-orientation-change-provider
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.11.4 |
| Published | 2018-06-28 |
| First published | 2018-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Krister Kari |
| Maintainers | kristerkari |
| Keywords | React, ReactNative, react-native, provider, orientation change |

## Links

- npm: https://www.npmjs.com/package/react-native-orientation-change-provider
- Repository: https://github.com/kristerkari/react-native-orientation-change-provider
- Homepage: https://github.com/kristerkari/react-native-orientation-change-provider#readme
- Issues: https://github.com/kristerkari/react-native-orientation-change-provider/issues
- npm.io page: https://npm.io/package/react-native-orientation-change-provider

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.11.4 (latest) — 2018-06-28
- 0.11.3 — 2018-06-28
- 0.11.2 — 2018-03-17
- 0.11.1 — 2018-03-16
- 0.11.0 — 2018-03-16
- 0.10.0 — 2018-03-14

## README

# React Native Orientation Change Provider

Simple React Native Provider component that forces a re-render when orientation changes.

## Installation

```
npm install react-native-orientation-change-provider --save-dev
```

or

```
yarn add react-native-orientation-change-provider --dev
```

## Usage

Import `OrientationChangeProvider` and wrap your whole app with the provider:

```jsx
import { OrientationChangeProvider } from "react-native-orientation-change-provider";

...

<OrientationChangeProvider>
  <App />
</OrientationChangeProvider>;
```

Notice that using `OrientationChangeProvider` will force your app to re-render when the orientation changes. It causes all `this.state` from child components to reset. You can work around that by using a global state, for example [Redux](https://redux.js.org/).

---
_Source: https://npm.io/package/react-native-orientation-change-provider · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
