Satyajit Sahoo
84d75b37e7
chore: add a toggle for RTL
2020-01-20 15:58:46 +01:00
Satyajit Sahoo
65e5147910
chore: add some more examples
2020-01-20 15:38:05 +01:00
Satyajit Sahoo
321fa653ad
fix: handle header translation for horizontal-inverted
...
When going from a screen with header to screen with no header, we need to translate the header to right if the animation direction is inverted.
2020-01-20 10:55:10 +01:00
Satyajit Sahoo
2a76dc4d3c
fix: improvements to the compat layer
2020-01-20 10:36:57 +01:00
Satyajit Sahoo
0a982ee698
fix: don't use native driver on web
...
The native driver is not supported for animations on web. It just prints a wanrning in the console. So we conditionally disable it on web.
2020-01-20 06:20:06 +01:00
Satyajit Sahoo
1da4a6437f
fix: fix types for native stack
2020-01-20 05:39:08 +01:00
Satyajit Sahoo
f1df4a0808
feat: emit appear and dismiss events for native stack
2020-01-20 05:28:41 +01:00
Satyajit Sahoo
14ae3738cf
fix: ensure re-render on isFirstRouteInParent change in compat layer
2020-01-19 03:44:16 +01:00
Satyajit Sahoo
32a2206513
feat: add useNavigationState hook
...
Sometimes it's useful to get the current navigation state inside a screen. We have the `dangerouslyGetState` method for that. However, the problem with this method is that it won't trigger a re-render when it changes, so user cannot rely on it for rendering something.
This adds a 2 things:
1. A `state` event similar to `focus` and `blur` that user can subscribe to
2. A `useNavigationState` hook that takes a selector and returns part of the state
Internally `useNavigationState` subscribes to the state event to get the current navigation state.
I have also made it mandatory to pass a selector to `useNavigationState`. This makes it harder to accidentally get the whole navigation state, which will trigger a re-render every time anything changes, even if we don't care about the change. With a selector, we can tell which part we care about, and if that part didn't change, it won't trigger a re-render.
For example, to get the same functionality as the old `isFirstRouteInParent` method:
```js
function MyComponent({ route }) {
const isFirstRouteInParent = useNavigationState(state => state.routes[0] === route);
// content
}
```
2020-01-18 23:25:42 +01:00
Satyajit Sahoo
38520a97ff
fix: position inactivscreensws offscreen by default
2020-01-18 23:13:36 +01:00
Satyajit Sahoo
3bf5ddde2a
fix: don't add ?if query params is empty
2020-01-18 22:30:39 +01:00
Satyajit Sahoo
43d2c456be
fix: slide the header up to hide it for vertical animation
2020-01-18 04:13:37 +01:00
Satyajit Sahoo
fe82276b1f
fix: use a fade animation for header in all presets
2020-01-18 03:54:01 +01:00
Wojciech Lewicki
1e53821d52
feat: support nested config in getPathFromState ( #266 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-01-17 22:43:37 +01:00
Satyajit Sahoo
23ab45aceb
fix: fix types for useFocusEffect
...
See #270
2020-01-17 15:54:02 +01:00
Satyajit Sahoo
d9059b56d8
fix: disallow canPreventDefault option if not present in types
2020-01-15 08:48:02 +01:00
Satyajit Sahoo
ad4eaff1e9
fix: use protected for private value store
2020-01-14 16:52:29 +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
ee381a4ba3
test: make sure navigation prop is cached
2020-01-14 15:26:45 +01:00
Satyajit Sahoo
3c5b8c4992
chore: publish
...
- @react-navigation/bottom-tabs@5.0.0-alpha.37
- @react-navigation/compat@5.0.0-alpha.26
- @react-navigation/core@5.0.0-alpha.35
- @react-navigation/drawer@5.0.0-alpha.39
- @react-navigation/material-bottom-tabs@5.0.0-alpha.34
- @react-navigation/material-top-tabs@5.0.0-alpha.33
- @react-navigation/native-stack@5.0.0-alpha.27
- @react-navigation/native@5.0.0-alpha.27
- @react-navigation/routers@5.0.0-alpha.25
- @react-navigation/stack@5.0.0-alpha.61
@react-navigation/drawer@5.0.0-alpha.39
@react-navigation/native-stack@5.0.0-alpha.27
@react-navigation/bottom-tabs@5.0.0-alpha.37
@react-navigation/compat@5.0.0-alpha.26
@react-navigation/core@5.0.0-alpha.35
@react-navigation/material-bottom-tabs@5.0.0-alpha.34
@react-navigation/material-top-tabs@5.0.0-alpha.33
@react-navigation/stack@5.0.0-alpha.61
@react-navigation/routers@5.0.0-alpha.25
@react-navigation/native@5.0.0-alpha.27
2020-01-14 02:24:48 +01:00
Satyajit Sahoo
a912323c1d
fix: fix intellisense for CompositeNavigationProp
2020-01-14 02:21:18 +01:00
Satyajit Sahoo
805e5e8636
chore: publish
...
- @react-navigation/bottom-tabs@5.0.0-alpha.36
- @react-navigation/compat@5.0.0-alpha.25
- @react-navigation/core@5.0.0-alpha.34
- @react-navigation/drawer@5.0.0-alpha.38
- @react-navigation/material-bottom-tabs@5.0.0-alpha.33
- @react-navigation/material-top-tabs@5.0.0-alpha.32
- @react-navigation/native-stack@5.0.0-alpha.26
- @react-navigation/native@5.0.0-alpha.26
- @react-navigation/routers@5.0.0-alpha.24
- @react-navigation/stack@5.0.0-alpha.60
@react-navigation/material-top-tabs@5.0.0-alpha.32
@react-navigation/stack@5.0.0-alpha.60
@react-navigation/compat@5.0.0-alpha.25
@react-navigation/core@5.0.0-alpha.34
@react-navigation/drawer@5.0.0-alpha.38
@react-navigation/bottom-tabs@5.0.0-alpha.36
@react-navigation/native-stack@5.0.0-alpha.26
@react-navigation/native@5.0.0-alpha.26
@react-navigation/material-bottom-tabs@5.0.0-alpha.33
@react-navigation/routers@5.0.0-alpha.24
2020-01-13 18:35:00 +01:00
Satyajit Sahoo
65a5dac2bf
fix: make sure paths aren't aliased when building definitions
...
closes #265
2020-01-13 18:31:41 +01:00
Satyajit Sahoo
536225c2c3
chore: publish
...
- @react-navigation/bottom-tabs@5.0.0-alpha.35
- @react-navigation/compat@5.0.0-alpha.24
- @react-navigation/core@5.0.0-alpha.33
- @react-navigation/drawer@5.0.0-alpha.37
- @react-navigation/material-bottom-tabs@5.0.0-alpha.32
- @react-navigation/material-top-tabs@5.0.0-alpha.31
- @react-navigation/native-stack@5.0.0-alpha.25
- @react-navigation/native@5.0.0-alpha.25
- @react-navigation/routers@5.0.0-alpha.23
- @react-navigation/stack@5.0.0-alpha.59
@react-navigation/material-bottom-tabs@5.0.0-alpha.32
@react-navigation/bottom-tabs@5.0.0-alpha.35
@react-navigation/compat@5.0.0-alpha.24
@react-navigation/core@5.0.0-alpha.33
@react-navigation/drawer@5.0.0-alpha.37
@react-navigation/stack@5.0.0-alpha.59
@react-navigation/routers@5.0.0-alpha.23
@react-navigation/native@5.0.0-alpha.25
@react-navigation/native-stack@5.0.0-alpha.25
@react-navigation/material-top-tabs@5.0.0-alpha.31
2020-01-13 14:37:49 +01:00
Satyajit Sahoo
23f76189a4
refactor: rename forStatic to forSlide for header
2020-01-13 00:54:05 +01:00
Satyajit Sahoo
f1f5b7197c
chore: use project references for typescript
2020-01-12 09:26:50 +01:00
Satyajit Sahoo
324fad33ef
chore: add some comments to metro config
2020-01-12 02:56:22 +01:00
Satyajit Sahoo
d14c471385
docs: add instructions for forks
2020-01-12 01:23:16 +01:00
Satyajit Sahoo
7113540127
chore: remove workflow for detox for now
2020-01-11 16:58:25 +01:00
Satyajit Sahoo
a23dfd419d
chore: remove nohoist from example
2020-01-10 13:12:32 +01:00
Satyajit Sahoo
e6fade010b
chore: publish
...
- @react-navigation/material-top-tabs@5.0.0-alpha.30
@react-navigation/material-top-tabs@5.0.0-alpha.30
2020-01-09 17:13:00 +01:00
Satyajit Sahoo
beb9a151f0
chore: add troubleshooting link
2020-01-09 17:12:01 +01:00
Satyajit Sahoo
c814636061
refactor: remove tabBarVisible from material-top-tabs
2020-01-09 17:09:41 +01:00
Satyajit Sahoo
bfb28599fb
chore: publish
...
- @react-navigation/bottom-tabs@5.0.0-alpha.34
- @react-navigation/compat@5.0.0-alpha.23
- @react-navigation/core@5.0.0-alpha.32
- @react-navigation/drawer@5.0.0-alpha.36
- @react-navigation/material-bottom-tabs@5.0.0-alpha.31
- @react-navigation/material-top-tabs@5.0.0-alpha.29
- @react-navigation/native-stack@5.0.0-alpha.24
- @react-navigation/native@5.0.0-alpha.24
- @react-navigation/routers@5.0.0-alpha.22
- @react-navigation/stack@5.0.0-alpha.58
@react-navigation/material-top-tabs@5.0.0-alpha.29
@react-navigation/stack@5.0.0-alpha.58
@react-navigation/core@5.0.0-alpha.32
@react-navigation/drawer@5.0.0-alpha.36
@react-navigation/material-bottom-tabs@5.0.0-alpha.31
@react-navigation/bottom-tabs@5.0.0-alpha.34
@react-navigation/compat@5.0.0-alpha.23
@react-navigation/native@5.0.0-alpha.24
@react-navigation/native-stack@5.0.0-alpha.24
@react-navigation/routers@5.0.0-alpha.22
2020-01-09 03:03:45 +01:00
Satyajit Sahoo
37d26ca994
fix: change default screen change animation on web
2020-01-09 02:59:36 +01:00
Satyajit Sahoo
5470aeaca2
fix: don't add header animation if mode is not float
2020-01-09 02:54:01 +01:00
Satyajit Sahoo
011dabf919
chore: upgrade depenendecies
2020-01-09 02:50:48 +01:00
Satyajit Sahoo
d077388b5f
chore: add link to the docs in READMEs
2020-01-09 01:48:32 +01:00
Satyajit Sahoo
3bdbd89515
chore: update repo url for packages
...
npm only shows correct link if we use the link directly instead of repo metadata
2020-01-09 01:39:48 +01:00
Satyajit Sahoo
67798af869
fix: clamp interpolated styles
2020-01-09 01:27:19 +01:00
Satyajit Sahoo
32ffaac647
fix: only render last 3 headers in stack
2020-01-09 01:10:44 +01:00
Satyajit Sahoo
7a3d652e84
fix: change POP behaviour to remove elements from index only
...
Fixes #256
2020-01-09 01:06:55 +01:00
Satyajit Sahoo
14cd7de665
chore: update issue templates
2020-01-07 20:07:06 +01:00
osdnk
da9948bfd8
chore: publish
...
- @react-navigation/stack@5.0.0-alpha.56
@react-navigation/stack@5.0.0-alpha.56
2020-01-07 06:57:09 -05:00
Michał Osadnik
d3f5c55dbf
fix: remove clamping in extrapolation of progress of stack animation
2020-01-07 06:46:29 -05:00
Satyajit Sahoo
f91d16cd5d
chore: update readme
2020-01-07 05:14:04 +01:00
Satyajit Sahoo
fbadea46f1
chore: setup detox for iOS
2020-01-07 05:14:04 +01:00
Satyajit Sahoo
5614a7cd31
chore: publish
...
- @react-navigation/stack@5.0.0-alpha.55
@react-navigation/stack@5.0.0-alpha.55
2020-01-06 19:31:30 +01:00
Satyajit Sahoo
d8b88bd83f
fix: memoize interpolated style to avoid extra work
2020-01-05 17:25:27 +01:00
Satyajit Sahoo
d6d06d07d9
chore: publish
...
- @react-navigation/stack@5.0.0-alpha.54
@react-navigation/stack@5.0.0-alpha.54
2020-01-05 15:31:25 +01:00