reactxp-navigation
Version:
Plugin for ReactXP that provides a navigation framework
40 lines (39 loc) • 1.55 kB
TypeScript
/**
* NavigatorExperimentalDelegate.tsx
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license.
*
* Delegate which encapsulates experimental react-native Navigator experience.
* The main difference of Experimental Navigator is that it uses Animated for navigation animation
* so we can enable useNativeDriver options for those animations.
*
* Currently, Android support on NativeAnimations is more stable and performant than iOS.
* That's why we need to have the ability to pick different implementations for different platforms.
*/
import { Navigator, NavigationCommand, NavigatorDelegate, NavigatorRoute, NavigatorState } from '../common/Types';
export declare class NavigatorExperimentalDelegate extends NavigatorDelegate {
private _state;
private _transitionSpec;
constructor(navigator: Navigator<NavigatorState>);
getRoutes(): NavigatorRoute[];
immediatelyResetRouteStack(nextRouteStack: NavigatorRoute[]): void;
render(): JSX.Element;
private _convertCustomTransitionConfig;
private _buildTransitionSpec;
private _onTransitionEnd;
private _onTransitionStart;
private _renderScene;
handleBackPress(): void;
processCommand(commandQueue: NavigationCommand[]): void;
/**
* This method is going to be deprecated in later releases
*/
private _onNavigateBack;
private _createState;
private _createParentState;
private _popToTop;
private _popN;
private _popToRoute;
}
export default NavigatorExperimentalDelegate;