# react-native-rct-toast

> react native toast

Latest version **0.1.3** (published 2025-05-16) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2025-05-16 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 52.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yliao |
| Maintainers | 900etrip |
| Keywords | react-native, ios, android |

## Links

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

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.3 (latest) — 2025-05-16
- 0.1.2 — 2023-10-25
- 0.1.1 — 2021-05-24
- 0.1.0 — 2021-05-24

## README

# rn-native-toast

react native toast

## Installation

```sh
npm install react-native-rct-toast
```

## Usage

```js
import Toast from "react-native-rct-toast";

// ...

Toast.show(message: string,duration: number,position: number,style: styleType): void

Toast.hide();

export interface styleType {
  backgroundColor?: string; //背景色 #ffffff
  color?: string; //字体颜色 #333333
  horizontalPadding?: number; //横向padding
  verticalPadding?: number; //垂直方向padding
  fontSize?: number; //文字大小
  fontWeight?: string; //字体是否粗体 bold ｜ false
  radius?: number; //圆角
}

type RCTToastType = {
  show(
    message: string,
    duration: number,
    position: number,
    style: styleType
  ): void;
  hide(): void;
  SHORT: number;
  LONG: number;
  TOP: number;
  CENTER: number;
  BOTTOM: number;
};

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

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