Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement backBehavior #69

Open
okwasniewski opened this issue Oct 21, 2024 · 0 comments
Open

Implement backBehavior #69

okwasniewski opened this issue Oct 21, 2024 · 0 comments

Comments

@okwasniewski
Copy link
Owner

okwasniewski commented Oct 21, 2024

Native Bottom Tabs are missing this prop from JS Tabs, this can be replicated almost 1:1 as it lays on the JS side:

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
@okwasniewski okwasniewski added enhancement New feature or request Android labels Oct 21, 2024
@okwasniewski okwasniewski changed the title [Android] Implement backBehavior Implement backBehavior Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant