Skip to content

Commit

Permalink
feat(docs): backbehaviour props added (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamguptadream11 authored Oct 31, 2024
1 parent 3b9e330 commit 115b163
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/docs/docs/guides/usage-with-react-navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ The name of the route to render on first load of the navigator.

Default options to use for the screens in the navigator.

#### `backBehavior`

This controls what happens when `goBack` is called in the navigator. This includes pressing the device's back button or back gesture on Android.

It supports the following values:

- `firstRoute` - return to the first screen defined in the navigator (default)
- `initialRoute` - return to initial screen passed in `initialRouteName` prop, if not passed, defaults to the first screen
- `order` - return to screen defined before the focused screen
- `history` - return to last visited screen in the navigator; if the same screen is visited multiple times, the older entries are dropped from the history
- `none` - do not handle back button

#### `labeled`

Whether to show labels in tabs. Defaults to true.
Expand Down

0 comments on commit 115b163

Please sign in to comment.