Back Button Options

Controls the back button styling.

const options = {
topBar: {
backButton: {},
},
};

id

Button id for reference press event.

TypeRequiredPlatform
stringNoAndroid

color

Change the back button color. This will change the text color as well.

TypeRequiredPlatform
colorNoBoth

icon

Change the default back button icon.

TypeRequiredPlatform
numberNoBoth

showTitle

Show or hide the text displayed next to the back button.

TypeRequiredPlatform
numberNoiOS

title

Change the text displayed next to the title. Usually the back button shows the title of the previous screen.

TypeRequiredPlatform
stringNoiOS

visible

Hide or show the back button.

TypeRequiredPlatform
booleanNoBoth

testID

Used to interact with the back button in e2e tests.

TypeRequiredPlatform
stringNoBoth