Merge pull request #26305 from philnova/master

Put openURL under CustomTabs namespace
This commit is contained in:
Armando Aguirre
2018-06-07 13:42:19 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -19,4 +19,6 @@ export interface CustomTabsOptions {
headers?: any;
}
export function openURL(url: string, options?: CustomTabsOptions): Promise<boolean>;
export namespace CustomTabs {
function openURL(url: string, options?: CustomTabsOptions): Promise<boolean>;
}

View File

@@ -7,4 +7,4 @@ const rnt: ReactNativeCustomTabs.CustomTabsOptions = {
enableDefaultShare: true,
};
const url: Promise<boolean> = ReactNativeCustomTabs.openURL('testurl.com', rnt);
const url: Promise<boolean> = ReactNativeCustomTabs.CustomTabs.openURL('testurl.com', rnt);