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

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -