Passing props to react-redux container component

后端 未结 4 1736
温柔的废话
温柔的废话 2021-01-30 05:08

I have a react-redux container component that is created within a React Native Navigator component. I want to be able to pass the navigator as a prop to this container component

4条回答
  •  醉酒成梦
    2021-01-30 05:26

    You can pass in a second argument to mapStateToProps(state, ownProps) which will give you access to the props passed into the component in mapStateToProps

提交回复
热议问题