title: createReduxBoundAddListener is deprecated in react-navigation-redux-helpers@2.0.0! Please use reduxifyNavigator instead
body: <p>I'm using react-navigation and redux for navigation between screens I'm getting an error instead.</p>
  
  <blockquote>
    <p>Invariant Violation: createReduxBoundAddListener is deprecated in
    react-navigation-redux-helpers@2.0.0!  Please use reduxifyNavigator </p>
  </blockquote>
  
  <p>I don't know how to fix it please help me out.</p>
  
  <p><strong>App.js</strong></p>
  
  <pre><code> import React from 'react';
   import { Provider } from "react-redux";
   import store from "./src/redux/store"      
   import { createReduxBoundAddListener } from "react- navigation-redux-helpers";
   import AppWithNavigationState from "./src/navigators/AppNavigator";
  
  export default class App extends React.Component {
   render() {
    return (
     &lt;Provider store={store}&gt;
  
        //Here Im getting an error regarding creacteReduxBoundAddListener
  
       &lt;AppWithNavigationState listener{createReduxBoundAddListener("root")}/&gt;
     &lt;/Provider&gt;
    );
   }
  }
  </code></pre>
  
  <p><strong>AppNavigator.js file</strong></p>
  
  <pre><code>import React, { Component } from 'react';
  import { View, Text } from 'react-native';
  import {connect} from "react-redux";
  import {PropTypes} from 'prop-types';
  import {addNavigationHelpers,createStackNavigator } from "react-navigation";
  import LoggedOut from "../screens/LoggedOut";
  import LogIn from "../screens/Login";
  import ForgotPassword from "../screens/ForgotPassword";
  
  // created screens using createStackNavigator
  
  export const AppNavigator = createStackNavigator({
    LoggedOut:{screen:LoggedOut},
    LogIn:{screen:LogIn},
    ForgotPassword:{screen:ForgotPassword},
  
  });
  
  const AppWithNavigationState = ({ dispatch,nav,listener}) =&gt;{
    &lt;AppNavigator navigation= 
    {addNavigationHelpers({dispatch,state:nav,addListener:listener})}/&gt;
  };
  
  AppWithNavigationState.propTypes = {
    dispatch:PropTypes.func.isRequired,
    nav:PropTypes.object.isRequired
  };
  
  const mapStateToProps = state =&gt;({
    nav:state.nav,
  });
  
  export default connect(mapStateToProps)(AppWithNavigationState);
  </code></pre>
  
  <p><strong>navigation.js</strong></p>
  
  <pre><code>import {AppNavigator} from "../../navigators/AppNavigator";
  
  
  const firstAction = 
  AppNavigator.router.getActionForPathAndParams("LoggedOut");  //decide which 
                                                               //screen will 
                                                               //load first
  
  const initialNavState = AppNavigator.router.getStateForAction(firstAction);
  
  export const nav = (state=initialNavState, action)=&gt;{
    let nextState = AppNavigator.router.getStateForAction(action,state);
    return nextState || state;
  }
  </code></pre>