Skip to content

Files

Latest commit

 

History

History
41 lines (29 loc) · 1.06 KB

options-hardwareBackButton.mdx

File metadata and controls

41 lines (29 loc) · 1.06 KB
id title sidebar_label
options-hardwareBackButton
Hardware Back Button Options
Hardware Back Button

Controls Android hardware back button.

const options = {
  hardwareBackButton: {},
};

dismissModalOnPress

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

Type Required Default Platform
boolean No true Android

popStackOnPress

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

Type Required Default Platform
boolean No true Android

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.

Type Required Default Platform
enum('exit', 'first', 'previous') No 'exit' Android