UNPKG

react-native-navigation

Version:

React Native Navigation - truly native navigation for iOS and Android

28 lines (27 loc) 1.59 kB
import { TurboModule } from 'react-native'; import { UnsafeObject, Double } from 'react-native/Libraries/Types/CodegenTypes'; export interface Spec extends TurboModule { readonly getConstants: () => { topBarHeight: Double; statusBarHeight: Double; bottomTabsHeight: Double; backButtonId: string; }; setRoot(commandId: string, layout: UnsafeObject): Promise<string>; setDefaultOptions(options: UnsafeObject): void; mergeOptions(componentId: string, options: UnsafeObject): void; push(commandId: string, componentId: string, layout: UnsafeObject): Promise<string>; pop(commandId: string, componentId: string, options?: UnsafeObject): Promise<string>; popTo(commandId: string, componentId: string, options?: UnsafeObject): Promise<string>; popToRoot(commandId: string, componentId: string, options?: UnsafeObject): Promise<string>; setStackRoot(commandId: string, componentId: string, layout: Array<UnsafeObject>): Promise<string>; showModal(commandId: string, layout: UnsafeObject): Promise<string>; dismissModal(commandId: string, componentId: string, options?: UnsafeObject): Promise<string>; dismissAllModals(commandId: string, options?: UnsafeObject): Promise<string>; showOverlay(commandId: string, layout: UnsafeObject): Promise<string>; dismissOverlay(commandId: string, componentId: string): Promise<string>; dismissAllOverlays(commandId: string): Promise<string>; getLaunchArgs(commandId: string): Promise<Array<string>>; } declare const commands: Spec; export default commands;