react-nativereduxreact-reduxstack-navigatortabnavigator

Send parameters from child to parent navigator React native


I am using React native and redux. One of my actions in redux needs to update the badge count on one of my bottom tab navigator tab. SetParams doesn't work anywhere outside the screen so how can I set parameters for the bottom tab navigator from one of the screens under it so that it receives those props?

Thanks in advance.


Solution

  • since you are using Redux I would just recommend storing the badge count in your store and pass it in that way.