Handle browser back button

I am trying to port a react-native app to run on web. Is there a recommended way to handle back button press on the browser? I’m using stackednavigator from ‘react-navigation’

1 Like

Do you mean the hardware back button on Android devices? There is this API