react-navigation / rfcs

RFCs for changes to React Navigation
Other
88 stars 16 forks source link

Replace setParams / pass params with function pattern with serializable approach #32

Open brentvatne opened 6 years ago

brentvatne commented 6 years ago

When navigating to a route you sometimes want to be able to pass in some function just like you would as props to a component that you're rendering. For example you may want to tell it what it should do when the user hits a submit button. But passing a function in isn't serializable and would break persistence.