0.1.7 • Published 5 months ago

@types/react-native-toast-native v0.1.7

Weekly downloads
71
License
MIT
Repository
github
Last release
5 months ago

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

// Type definitions for react-native-toast-native 0.1
// Project: https://github.com/onemolegames/react-native-toast-native
// Definitions by: Michele Bombardi <https://github.com/bm-software>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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, 08 Jul 2021 22:41:21 GMT
  • Dependencies: @types/react-native
  • Global values: none

Credits

These definitions were written by Michele Bombardi.

0.1.7

5 months ago

0.1.4

7 months ago

0.1.6

6 months ago

0.1.5

7 months ago

0.1.3

3 years ago

0.1.2

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago