# react-native-pure-status-bar

> react native status-bar

Latest version **0.0.9** (published 2020-04-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-pure-status-bar
pnpm add react-native-pure-status-bar
yarn add react-native-pure-status-bar
bun add react-native-pure-status-bar
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2020-04-13 |
| First published | 2019-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | musicode |
| Maintainers | musicode |
| Keywords | react, native, status bar |

## Links

- npm: https://www.npmjs.com/package/react-native-pure-status-bar
- Repository: https://github.com/musicode/react-native-pure-status-bar
- Homepage: https://github.com/musicode/react-native-pure-status-bar#readme
- Issues: https://github.com/musicode/react-native-pure-status-bar/issues
- npm.io page: https://npm.io/package/react-native-pure-status-bar

## 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.0.9 (latest) — 2020-04-13
- 0.0.8 — 2020-04-07
- 0.0.7 — 2020-04-07
- 0.0.6 — 2020-04-07
- 0.0.5 — 2019-12-06
- 0.0.4 — 2019-12-04
- 0.0.3 — 2019-12-04
- 0.0.2 — 2019-12-04
- 0.0.1 — 2019-12-03

## README

# react-native-pure-status-bar

This is a module which help you set status bar style and show/hide status bar.

## Installation

```
npm i react-native-pure-status-bar
// link below 0.60
react-native link react-native-pure-status-bar
```

## Setup

### iOS

Modify `ios/<ProjectName>/Info.plist`, make sure `UIViewControllerBasedStatusBarAppearance` is `false`.

```xml
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
```

### Android

Modify `android/app/src/main/res/values/styles.xml`, make sure `windowTranslucentStatus` is `true`.

```xml
<resources>

    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowTranslucentStatus">true</item>
        <item name="colorAccent">your color</item>
    </style>

</resources>
```

## Usage

```js
import statusBar from 'react-native-pure-status-bar'

// at first, you must set the status bar style
// style: set text color, dark | light
// animated: if the transition to the new style should be animated, ios only
statusBar.setStyle('dark', true)

// Whether to hide status bar
// animation: fade | slide | none, ios only
statusBar.setHidden(true, animation)

// Whether to show network activity indicator, ios only
statusBar.setNetworkActivityIndicatorVisible(true)

// android only
statusBar.setNavigationBarColor('#ffffff')
```

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