Commit Graph

11 Commits

Author SHA1 Message Date
satyajit.happy
2eb86cd215 feat: add a setOptions method to set screen options
In React Navigation, the screen options can be specified statically. If you need to configure any options based on props and state of the component, or want to update state and props based on some action such as tab press, you need to do it in a hacky way by changing params. it's way more complicated than it needs to be. It also breaks when used with HOCs which don't hoist static props, a common source of confusion.

This PR adds a `setOptions` API to be able to update options directly without going through params.
2019-07-22 20:50:53 +02:00
satyajit.happy
2b819e4310 feat: improve types for options and support a function 2019-07-22 12:21:40 +02:00
satyajit.happy
38aa8e447b docs: update README to match latest API 2019-07-18 22:09:44 +02:00
satyajit.happy
db6fe6bb1e refactor: add separate method for rehydration and fix types 2019-07-14 18:42:30 +02:00
satyajit.happy
06a3fbc13d docs: update README 2019-07-13 05:19:10 +02:00
satyajit.happy
580f909957 docs: add info about type checking to the README 2019-06-11 15:39:02 +02:00
satyajit.happy
44909bd80a refactor: minor tweaks 2019-06-10 01:57:42 +02:00
satyajit.happy
00fdd13356 docs: add info about how initial state is handled 2019-06-09 21:11:57 +02:00
satyajit.happy
fc1a4adc74 chore: initial POC 2019-06-09 19:37:23 +02:00
satyajit.happy
09e1edf510 chore: configure some stuff 2019-06-09 16:55:47 +02:00
Satyajit Sahoo
32139afa3e Initial commit 2019-06-09 14:45:27 +00:00