Commit Graph

13 Commits

Author SHA1 Message Date
Satyajit Sahoo
3a77107968 fix: drop isFirstRouteInParent method (#145)
The `isFirstRouteInParent` method was added to determine whether the back button should be shown in the header for stack navigator or not.
This was mainly due to the API of the old version of stack whose public API of header didn't have all required info to determine whether it should be shown.
It was probably a mistake to add it, because this method doesn't look at history and so pretty much useless for other navigators which aren't stack.

In the new stack, the header receives a `previous` prop and the `headerLeft` option receives a `canGoBack` prop which can be used for this purpose.
It's also possible to check if a route is the first by doing `navigation.dangerouslyGetState().routes[0].key === route.key`.

So it's time to drop this method.
2019-10-30 08:51:59 +01:00
satyajit.happy
2b5955efbe refactor: use Record type for objects 2019-10-22 00:53:11 +02:00
satyajit.happy
98f0de088f refactor: make dispatch accept thunks 2019-09-17 13:05:45 +02:00
satyajit.happy
e0f28a432d feat: compatibility layer 2019-09-16 15:16:28 +02:00
satyajit.happy
faaf855717 refactor: separate navigation and route context 2019-09-04 11:54:20 +02:00
Michał Osadnik
b0a3756d18 feat: add useRoute (#89) 2019-08-31 15:56:04 +01:00
satyajit.happy
935c588000 refactor: rename BaseActions tCommonActions 2019-08-27 08:45:37 +02:00
Michał Osadnik
f7ff0c1cf0 feat: add dangerouslyGetState (#63) 2019-08-21 13:00:12 +01:00
Michał Osadnik
c0045d82b3 feat: add dangerouslyGetParent (#62) 2019-08-21 12:33:29 +01:00
satyajit.happy
81348959ee fix: use correct dispatch in methods in screen's navigation prop 2019-08-12 06:11:10 +05:30
satyajit.happy
9625689595 docs: add comments to better describe the code 2019-08-11 23:14:30 +05:30
Satyajit Sahoo
dcf57c095c feat: integrate reanimated based stack (#42) 2019-08-06 11:22:45 +01:00
Satyajit Sahoo
ce7d163073 chore: setup monorepo with yarn workspaces (#38) 2019-08-01 23:40:57 +01:00