@types/react-native-toast-native
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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

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

Credits

These definitions were written by Michele Bombardi.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-toast-native

Weekly Downloads

13

Version

0.1.7

License

MIT

Unpacked Size

5.01 kB

Total Files

5

Last publish

Collaborators

  • types