From 1ac60c012448b30ca147f7104ed3dd21246be0f4 Mon Sep 17 00:00:00 2001 From: Haseeb Majid Date: Tue, 23 Apr 2019 20:37:49 +0100 Subject: [PATCH] Updated Toast.show in index.d.ts Update the Toast.show() function in the index.d.ts file. Added the style field, as shown in this issue in #840 --- .gitignore | 1 + index.d.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c076859a2..5ff0aa0ff 100644 --- a/.gitignore +++ b/.gitignore @@ -132,6 +132,7 @@ captures/ # VsCode .vscode/* +.history/ # Keystore files *.jks diff --git a/index.d.ts b/index.d.ts index 2001a0953..5c3e3f634 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ declare module "native-base" { import * as React from "react"; import * as ReactNative from "react-native"; - import {KeyboardAwareScrollViewProps} from "react-native-keyboard-aware-scroll-view"; + import { KeyboardAwareScrollViewProps } from "react-native-keyboard-aware-scroll-view"; type RnViewStyleProp = ReactNative.StyleProp; type RnTextStyleProp = ReactNative.StyleProp; @@ -1179,6 +1179,7 @@ declare module "native-base" { type?: "danger" | "success" | "warning"; duration?: number; onClose?: (reason: "user" | "timeout" | "functionCall") => any; + Style?: RnViewStyleProp; textStyle?: RnTextStyleProp; buttonTextStyle?: RnTextStyleProp; buttonStyle?: RnViewStyleProp;