react native - Navigation.setParams does not update params -


i using react-navigation redux integrated, , in tabnavigator have button in headerleft. when click on button, navigation.setparams function called, overrides existing navigation.state.params on screen, instead of updating them, adding/changing property.

i tried go way:

navigation.setparams({ ...navigation.state.params, newprop: true }) 

but not work, old params still overridden. doing wrong or there workaround solve problem?


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -