# react-native-pure-toast

> react native toast

Latest version **0.0.5** (published 2020-04-07) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2020-04-07 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | musicode |
| Maintainers | musicode |
| Keywords | react, native, toast |

## Links

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

## 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.5 (latest) — 2020-04-07
- 0.0.4 — 2019-12-10
- 0.0.3 — 2019-11-19
- 0.0.2 — 2019-11-19
- 0.0.1 — 2019-11-19

## README

# react-native-pure-toast

This is a module which help you to show a toast like android.

## Installation

```
npm i react-native-pure-toast
// link below 0.60
react-native link react-native-pure-toast
```

## Setup

### iOS

modify `AppDelegate.m`

```oc
#import <RNTToast.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  ...
  // add this line
  [RNTToast bind:rootView];
  return YES;
}
```

`Targets` -> `Build Phase` -> `Copy Bundle Resources`, click `+` button, pick the folder `node_modules/react-native-pure-toast/ios/RNTToast/Assets.xcassets` to your project.

### Android

nothing to do.

## Usage

```js
import toast from 'react-native-pure-toast'

toast.show({
  text: 'hello world',
  // text|success|error, default value: text
  type: 'text',
  // short|long, default value: short
  duration: 'short',
  // center|top|bottom, default value: center
  position: 'center',
})
```

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