Back button(Android) and swipe right to go back in routes not working in ionic react

As title says,
The swipe right on content or Android back button(the one of the 3 android buttons at left) to go back to previous page is not working in my ionic react project.

I’m using:
BrowserRouter
IonRouterOutlet
Route

Here my App code:

setupIonicReact();

const App = () => (
  <Router>
    <IonApp>
      <IonRouterOutlet>
        <IonPage id="main">
          <Route exact path="/home" component={<Home />}>
            <Home />
          </Route>
          <Route exact path="/">
            <Redirect to="/home" />
          </Route>
          <Route path="/restaurant/:name" children={<Restaurant />}>
          </Route>
        </IonPage>
      </IonRouterOutlet>
      <Footer />
    </IonApp>
  </Router>

);

Could someone help? Thanks in advance