Skip to main content

BackButton

Button used by the stack navigation to go back to the previous screen

NameTypeDefault ValueRequiredDescription
onPress() => voidYesthe onPress function for the back button
canGoBackbooleanYesa boolean indicating if the user has a screen to go back to; if false, the back button will be hidden
labelBackButtonLabelYestranslation key to use for the display text, as well as the testID for the component
a11yHintstringNooptional param to add accessibility hint to back button
focusOnButtonbooleantrueNoboolean to specify if we want accesibility to focus on the back button
backButtonTestIDstringNooption testID
webviewbooleanNo