From 66ab3cd695be68e7d7536fde4c61bad4e7067281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20B=C3=BCrger?= Date: Sun, 21 Jul 2019 14:21:56 +0200 Subject: [PATCH] Added Navigation.constants() return type (#5292) --- lib/src/Navigation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Navigation.ts b/lib/src/Navigation.ts index 2dbeb859fb1..a193843aaf8 100644 --- a/lib/src/Navigation.ts +++ b/lib/src/Navigation.ts @@ -11,7 +11,7 @@ import { EventsRegistry } from './events/EventsRegistry'; import { ComponentProvider } from 'react-native'; import { SharedElement } from './adapters/SharedElement'; import { CommandsObserver } from './events/CommandsObserver'; -import { Constants } from './adapters/Constants'; +import { Constants, NavigationConstants } from './adapters/Constants'; import { ComponentEventsObserver } from './events/ComponentEventsObserver'; import { TouchablePreview } from './adapters/TouchablePreview'; import { LayoutRoot, Layout } from './interfaces/Layout'; @@ -200,7 +200,7 @@ export class NavigationRoot { /** * Constants coming from native */ - public async constants(): Promise { + public async constants(): Promise { return await Constants.get(); } }