Commit Graph

24 Commits

Author SHA1 Message Date
satyajit.happy
1c2e5de07a chore: configure publishing packages 2019-08-21 18:12:43 +05:30
satyajit.happy
6b9af77fab chore: configure lerna with bob 2019-08-21 14:27:07 +05:30
satyajit.happy
797b02bd8e refactor: check for stale == false to determine if state is rehydrated 2019-08-19 17:02:03 +05:30
satyajit.happy
48bdbe43a9 docs: fix missing prop in container 2019-08-19 15:20:55 +05:30
satyajit.happy
828e17eb5a docs: add info about back button and deep link 2019-08-19 15:09:58 +05:30
satyajit.happy
396bf3c081 docs: add info for contributing in README 2019-08-18 12:03:28 +05:30
satyajit.happy
10a6bfdbb1 refactor: use named exports for navigators 2019-08-14 06:08:44 +05:30
Satyajit Sahoo
2b59f7e482 feat: add a useIsFocused hook to get focus state (#52) 2019-08-13 21:11:39 +01:00
satyajit.happy
71f4ef1a92 refactor: standardize event argument 2019-08-06 17:51:06 +02:00
satyajit.happy
fd1c5fd0bb docs: add notes about architectural differences 2019-08-06 16:59:39 +02:00
satyajit.happy
819b7904fa feat: add a useFocusEffect hook 2019-08-01 12:38:58 +02:00
satyajit.happy
fb8d3024bf feat: add focus and blur events 2019-08-01 12:34:54 +02:00
satyajit.happy
78ccf49627 fix: combine options and fix state type in CompositeNavigationProp 2019-07-23 13:23:39 +02:00
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