DEV Community

Min htet
Min htet

Posted on

Call redux state props from react navigationOptions

import React from 'react'
import { connect } from 'react-redux'

This is main home component:

const Homes = props => {
    return()
}

This is navigation header title of main Homes component:

    Homes.navigationOptions = {
      title: 'home',
    };

This is redux connect with Homes component:

    const mapStateToProps = ({
      user:

Top comments (0)