@react-navigation/core
Version:
Core utilities for building navigators
14 lines • 506 B
TypeScript
import * as React from 'react';
/**
* A type of an object that have a route key as an object key
* and a value whether to prevent that route.
*/
export type PreventedRoutes = Record<string, {
preventRemove: boolean;
}>;
declare const PreventRemoveContext: React.Context<{
preventedRoutes: PreventedRoutes;
setPreventRemove: (id: string, routeKey: string, preventRemove: boolean) => void;
} | undefined>;
export default PreventRemoveContext;
//# sourceMappingURL=PreventRemoveContext.d.ts.map