API Reference / @gtkx/navigation / RootNavigator
Interface: RootNavigator
Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts:85
Root navigator used in the app. It's used for the global types in the app.
Users need to use module augmentation to add their navigator type:
ts
// Navigator created with static or dynamic API
const RootStack = createStackNavigator({
// ...
});
type RootStackType = typeof RootStack;
declare module '@react-navigation/core' {
interface RootNavigator extends RootStackType {}
}