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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -