Satyajit Sahoo
c85f2ff47a
feat: add an option to specify default options for the navigator
2020-11-17 20:25:49 +01:00
Satyajit Sahoo
f51086edea
feat: update helper types to have navigator specific methods
2020-10-23 18:12:36 +02:00
Satyajit Sahoo
7dc2f5832e
feat: improve types for navigation state ( #8980 )
...
The commit improves the navigation state object to have more specific types.
e.g. The `routeNames` array will now have proper type instead of `string[]`
2020-10-23 17:06:31 +02:00
Satyajit Sahoo
2bb6603aa3
chore: upgrade depenendecies
2020-09-23 01:34:55 +02:00
Kai Guo
8468c46cab
feat: add Windows and macOS support ( #8570 )
...
react-native-gesture-handler doesn't have Windows/macOS implementation yet, use the web version as stubs for now to enable navigation features for Windows and mac.
Close https://github.com/microsoft/react-native-windows/issues/3884
Close https://github.com/microsoft/react-native-windows/issues/4044
2020-07-28 23:51:41 +02:00
Satyajit Sahoo
1aadc79fb8
refactor: enforce import type everywhere
2020-06-17 12:05:40 +02:00
Satyajit Sahoo
dfdba8d741
fix: disable animation by default on web for stack
2020-04-10 17:02:32 +02:00
Satyajit Sahoo
179b6312fe
chore: update prettier
2020-03-22 23:58:06 +01:00
Satyajit Sahoo
162410843c
feat: add ability add listeners with listeners prop
...
This adds ability to listen to events from the component where the navigator is defined, even if the screen is not rendered.
```js
<Tabs.Screen
name="Chat"
component={Chat}
options={{ title: 'Chat' }}
listeners={{
tabPress: e => console.log('Tab press', e.target),
}}
/>
```
Closes #6756
2020-02-26 13:02:22 +01:00
Satyajit Sahoo
86c39d2e0e
refactor: move types and base router to routers package
2020-02-10 16:04:20 +01:00
Satyajit Sahoo
da67e134d2
feat: let the navigator specify if default can be prevented
2020-01-14 16:48:56 +01:00
Satyajit Sahoo
eef17a801e
refactor: import from /native instead of /core
2019-12-11 17:44:21 +01:00
Satyajit Sahoo
d618ab382e
feat: export underlying views used to build navigators ( #191 )
...
Exporting the underlying views makes it easy to build custom navigators on top of our views. Libraries such as react-native-router-flux rely on such exports to build custom routing solutions while being able to take advantage of our work.
This can also be the solution to adding custom behaviour without us needing to add separate config to override the router.
2019-12-04 00:22:53 +01:00
Satyajit Sahoo
941249dba9
refactor: rename createNavigator since it doesn't create a navigator
2019-11-10 20:12:32 +01:00
satyajit.happy
dead4e826a
fix: fix stack nested in tab always getting reset
2019-08-28 12:23:15 +02:00
satyajit.happy
9e1104c31f
feat: add hook to scroll to top on tab press
2019-08-24 12:14:49 +05:30
satyajit.happy
1a8281d37d
refactor: change order of type parameters
2019-08-22 11:37:17 +05:30
satyajit.happy
b0a0857b0a
refactor: typecheck events in navigation helpers
2019-08-22 11:33:15 +05:30
satyajit.happy
4128654324
chore: navigation-ex -> react-navigation
2019-08-21 16:09:10 +05:30
satyajit.happy
f0b80ce0f6
feat: implement various navigators
2019-08-19 01:07:48 +05:30
satyajit.happy
267d7c214f
refactor: don't use keyboardAwareNavigator The HOC currently forces us to expose some options in stack config which we don't want to. So we vendor this functionality for now to avoid this.
2019-08-18 23:51:48 +05:30
satyajit.happy
bba0feb691
fix: fix types for stack config
2019-08-18 23:51:48 +05:30
satyajit.happy
9b176e9dc8
feat: new implementation with reanimated
2019-08-18 23:51:38 +05:30