Skip to content

API Reference / @gtkx/navigation / BaseNavigationContainer

Variable: BaseNavigationContainer

const BaseNavigationContainer: React.ForwardRefExoticComponent<NavigationContainerProps & React.RefAttributes<NavigationContainerRef<ParamListBase>>>

Defined in: node_modules/.pnpm/@react-navigation+core@7.21.13_react@19.2.8/node_modules/@react-navigation/core/lib/typescript/src/BaseNavigationContainer.d.ts:16

Container component which holds the navigation state. This should be rendered at the root wrapping the whole app.

Param

props.initialState

Initial state object for the navigation tree.

Param

props.onReady

Callback which is called after the navigation tree mounts.

Param

props.onStateChange

Callback which is called with the latest navigation state when it changes.

Param

props.onUnhandledAction

Callback which is called when an action is not handled.

Param

props.theme

Theme object for the UI elements.

Param

props.children

Child elements to render the content.

Param

props.ref

Ref object which refers to the navigation object containing helper methods.

Released under the MPL-2.0 License.