Skip to content

Commit

Permalink
Finish FadeAnimation and NetworkFailureToast type definition oursky#7
Browse files Browse the repository at this point in the history
  • Loading branch information
wallacesky committed Dec 14, 2018
1 parent 223efb0 commit 1ec9fe0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/react-native-oursky/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
StyleProp,
ViewStyle,
TextStyle,
ImageSourcePropType,
} from "react-native";

export function createControlGroup(): {
Expand Down Expand Up @@ -155,3 +156,23 @@ export interface VerifyOTPProps extends ExtraTextProps {
export class VerifyOTP extends React.Component<VerifyOTPProps> {
focus: () => void;
}

export interface NetworkFailureToastProps {
style?: StyleProp<ViewStyle>;
errorText?: React.ReactNode;
textStyle?: StyleProp<TextStyle>;
imageIcon?: ImageSourcePropType;
iconStyle?: StyleProp<ViewStyle>;
animationDuration?: number;
}
export class NetworkFailureToast extends React.Component<
NetworkFailureToastProps
> {}

export interface FadeAnimationProps {
visible: boolean;
children: React.ReactNode;
duration?: number;
style?: StyleProp<ViewStyle>;
}
export class FadeAnimation extends React.Component<FadeAnimationProps> {}

0 comments on commit 1ec9fe0

Please sign in to comment.