Skip to content

Commit

Permalink
Updated Toast.show in index.d.ts
Browse files Browse the repository at this point in the history
Update the Toast.show() function in the index.d.ts file. Added the style field, as shown in this
issue in #840
  • Loading branch information
Haseeb Majid committed Apr 23, 2019
1 parent 2bd57b7 commit 1ac60c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ captures/
# VsCode

.vscode/*
.history/

# Keystore files
*.jks
Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -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<ReactNative.ViewStyle>;
type RnTextStyleProp = ReactNative.StyleProp<ReactNative.TextStyle>;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1ac60c0

Please sign in to comment.