content: /**
   * 2017年8月2日
   * Author : 罗浩 (Luo Hao)
   * GitHub : https://github.com/RoJoHub
   * Blog   : http://blog.csdn.net/mandmg
   */
  import PropTypes from 'prop-types'
  
  import { connect } from 'react-redux'
  
  import React from 'react'
  
  import { addNavigationHelpers } from 'react-navigation'
  
  import AppNavigator from './stackNavigator/AppNavigator'
  
  
  
  const AppWithNavigationState = ({ dispatch, nav }) => (
    <AppNavigator navigation={addNavigationHelpers({ dispatch, state: nav })} />
  )
  
  AppWithNavigationState.propTypes = {
    dispatch: PropTypes.func.isRequired,
    nav: PropTypes.object.isRequired,
  }
  
  const mapStateToProps = state => ({
    nav: state.nav,
  })
  
  
  
  export default connect(mapStateToProps)(AppWithNavigationState)