# @types/react-native-toast-native

> TypeScript definitions for react-native-toast-native

Latest version **0.1.7** (published 2023-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-native-toast-native
pnpm add @types/react-native-toast-native
yarn add @types/react-native-toast-native
bun add @types/react-native-toast-native
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2023-12-21 |
| First published | 2018-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-native-toast-native
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-toast-native
- npm.io page: https://npm.io/package/@types/react-native-toast-native

## Dependencies (1)

- [react-native](https://npm.io/package/react-native.md) *

## Recent versions

- 0.1.7 (latest) — 2023-12-21
- 0.1.6 (ts4.5) — 2023-11-07
- 0.1.3 (ts3.6) — 2021-07-08
- 0.1.2 (ts2.8) — 2019-02-13
- 0.1.0 (ts2.6) — 2018-07-09
- 0.1.5 — 2023-10-18
- 0.1.4 — 2023-09-27
- 0.1.1 — 2018-08-06

## README

# Installation
> `npm install --save @types/react-native-toast-native`

# Summary
This package contains type definitions for react-native-toast-native (https://github.com/onemolegames/react-native-toast-native).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-toast-native.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-toast-native/index.d.ts)
````ts
import { Platform } from "react-native";

export interface Style {
    width?: number | undefined;
    height?: number | undefined;
    backgroundColor?: string | undefined;
    color?: string | undefined;
    borderWidth?: number | undefined;
    borderRadius?: number | undefined;

    // iOS-only
    borderColor?: string | undefined;

    // Android-only
    paddingLeft?: number | undefined;
    paddingRight?: number | undefined;
    paddingBottom?: number | undefined;
    paddingTop?: number | undefined;
    fontSize?: number | undefined;
    lines?: number | undefined;
    lineHeight?: number | undefined;
    xOffset?: number | undefined;
    yOffset?: number | undefined;
    letterSpacing?: number | undefined;
    fontWeight?: string | undefined;
}

interface ToastNative {
    // Toast duration constants
    SHORT: any;
    LONG: any;

    // Toast gravity constants
    TOP: any;
    BOTTOM: any;
    CENTER: any;

    show(message?: string): void;
    show(message: string, duration: any, position: any, styles: Style): void;
}

declare const ToastNative: ToastNative;
export default ToastNative;

````

### Additional Details
 * Last updated: Thu, 21 Dec 2023 19:06:51 GMT
 * Dependencies: [react-native](https://npmjs.com/package/react-native)

# Credits
These definitions were written by [Michele Bombardi](https://github.com/bm-software).

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