Files
DefinitelyTyped/types/react-native-custom-tabs/index.d.ts
2018-06-04 12:40:59 -07:00

23 lines
644 B
TypeScript

// Type definitions for react-native-custom-tabs 0.1
// Project: https://github.com/droibit/react-native-custom-tabs
// Definitions by: Phil Nova <https://github.com/philnova>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Animations {
startEnter: string;
startExit: string;
endEnter: string;
endExit: string;
}
export interface CustomTabsOptions {
toolbarColor?: string;
enableUrlBarHiding?: boolean;
showPageTitle?: boolean;
enableDefaultShare?: boolean;
animations?: Animations;
headers?: any;
}
export function openURL(url: string, options?: CustomTabsOptions): Promise<boolean>;