satya164/react-navigation-addons

[Question] setOptions vs setParams

shahankit opened this issue · 1 comments

react-navigation by default provides setParams in this.props.navigation. What is the difference between setParams and setOptions?

setParams starts as an empty object and allows you to pass whatever you want into it.
setOptions makes it possible to set .navigationOptions at the screen level AND use the local component props... normally not possible.