diff --git a/packages/react-router/src/ReactRouter/NavManager.tsx b/packages/react-router/src/ReactRouter/NavManager.tsx index 60b39bab9ec..a01bc7873bc 100644 --- a/packages/react-router/src/ReactRouter/NavManager.tsx +++ b/packages/react-router/src/ReactRouter/NavManager.tsx @@ -34,6 +34,13 @@ export class NavManager extends React.Component { + e.detail.register(0, () => { + this.props.history.goBack(); + }); + }); + } } componentWillUnmount() { diff --git a/packages/react/src/components/utils/index.tsx b/packages/react/src/components/utils/index.tsx index 405d62ae701..3ce11956b11 100644 --- a/packages/react/src/components/utils/index.tsx +++ b/packages/react/src/components/utils/index.tsx @@ -1,4 +1,4 @@ -import { Platforms, getPlatforms as getPlatformsCore, isPlatform as isPlatformCore, Config as CoreConfig } from '@ionic/core'; +import { Config as CoreConfig, Platforms, getPlatforms as getPlatformsCore, isPlatform as isPlatformCore } from '@ionic/core'; import React from 'react'; import { IonicReactProps } from '../IonicReactProps';