# rn-awesome-notifications

> Notifications for react native apps

Latest version **0.2.2** (published 2023-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-awesome-notifications
pnpm add rn-awesome-notifications
yarn add rn-awesome-notifications
bun add rn-awesome-notifications
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2023-11-30 |
| First published | 2022-03-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 434.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | rushatter@gmail.com |
| Maintainers | rokotovmax |
| Keywords | notify, notification, push, alert, toast |

## Links

- npm: https://www.npmjs.com/package/rn-awesome-notifications
- Repository: https://github.com/jokertrip/rn-awesome-notifications
- Homepage: https://github.com/jokertrip/rn-awesome-notifications#readme
- Issues: https://github.com/jokertrip/rn-awesome-notifications/issues
- npm.io page: https://npm.io/package/rn-awesome-notifications

## Dependencies (3)

- [@types/node](https://npm.io/package/@types/node.md) ^17.0.23
- [patch-package](https://npm.io/package/patch-package.md) ^6.4.7
- [react-native-device-info](https://npm.io/package/react-native-device-info.md) ^10.12.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2023-11-30
- 0.2.1 — 2022-04-13
- 0.2.0 — 2022-03-30

## README

### Description

Local notifications for React Native app

### Installation

```sh
npm i --save rn-awesome-notifications
```



### Usage

In root Component

```
import { NotificationProvider } from "rn-awesome-notifications";

<NotificationProvider>
  ...
</NotificationProvider>
```

In your Component

```
import { useNotify } from "rn-awesome-notifications";

const MyComponent: React.FC = () => {
  
  const notify = useNotify();
  
  return (
    <Button
      title="Without buttons and icon"
      onPress={() => {
        notify({
          title: "Test push notification",
          message: "This is push was recievd from local storage",
        })
      }}
    />
  )
}
```

### Examples

```
notify.error({
    title: 'Error',
    message,
    timeout: 15000,
});
```
<img src="error.png"/>

```
notify.success({
    title: 'Success',
    message: 'Everything is fine',
    timeout: 15000,
});
```
<img src="succes.png"/>

```
notify.info({
    title: 'Info',
    message: 'Some info',
    timeout: 15000,
});
```
<img src="info.png"/>

---
_Source: https://npm.io/package/rn-awesome-notifications · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
