# react-native-rn-toast

> A react native module to show toast like android, it works on iOS and Android(use ToastAndroid from react-native).

Latest version **1.0.0** (published 2018-10-23) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2018-10-23 |
| First published | 2018-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | happydemoney |
| Maintainers | happydemoney |
| Keywords | react-native, react-component, react-native-component, react, mobile, ios, android, toast |

## Links

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

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.6.2

## 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

- 1.0.0 (latest) — 2018-10-23

## README

# react-native-rn-toast
    
    A react native module to show toast like android, it works on iOS and Android(use ToastAndroid from react-native).

[![License MIT](https://img.shields.io/github/license/happydemoney/react-native-rn-toast.svg)](https://github.com/happydemoney/react-native-rn-toast/blob/master/LICENSE)

## Getting started

`$ npm install react-native-rn-toast --save`

##  Usage
```javascript
import Toast from 'react-native-rn-toast';

Toast.show('toast test',Toast.SHORT);
Toast.showWithGravity('toast test',Toast.SHORT, Toast.CENTER);
Toast.showWithGravityAndOffset('toast test',Toast.CENTER, 20, 25);
```

##  Mehtod
> show()

```javascript
static show(message, duration)
```
> showWithGravity()

```javascript
static showWithGravity(message, duration, gravity)
```
> showWithGravityAndOffset()

```javascript
static showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset)
```
##  Properties
> SHORT

    Toast.SHORT;

> LONG

    Toast.LONG;
> TOP

    Toast.TOP;
> BOTTOM

    Toast.BOTTOM;
> CENTER

    Toast.CENTER;

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