diff --git a/src/screens/HomeScreen.js b/src/screens/HomeScreen.js index 9038c65..30bf86c 100644 --- a/src/screens/HomeScreen.js +++ b/src/screens/HomeScreen.js @@ -68,6 +68,8 @@ class HomeScreen extends React.Component { componentDidMount() { this.props.navigation.addListener('focus', this.onScreenFocus); + // Handle link open when home is focused + this.props.navigation.addListener('state', this.handleNavigationParams); } onScreenFocus = () => { @@ -77,8 +79,6 @@ class HomeScreen extends React.Component { headerRight: this.getHeaderButton, }); } - // Handle link open when home is focused - this.props.navigation.addListener('state', this.handleNavigationParams); // handle link open when home is not focused or created this.handleNavigationParams(); };