Skip to main content
Version: Next

Hardware Back Button Options

Controls Android hardware back button.

const options = {
hardwareBackButton: {},
};

dismissModalOnPress#

Controls whether the hardware back button should dismiss modal or not.

TypeRequiredDefaultPlatform
booleanNotrueAndroid

popStackOnPress#

Controls whether the hardware back button should pop stacks or not.

TypeRequiredDefaultPlatform
booleanNotrueAndroid

bottomTabsOnPress#

Controls hardware back button bottom tab selection behaviour, first will jump to first tab, previous will do reverse selection, exit (Default) will just exit the bottom tabs.

TypeRequiredDefaultPlatform
enum('exit', 'first', 'previous')No'exit'Android