Satyajit Sahoo
1aadc79fb8
refactor: enforce import type everywhere
2020-06-17 12:05:40 +02:00
Satyajit Sahoo
cc3728fc95
chore: tweak repository field in package.json. closes #8423
2020-06-16 21:46:09 +02:00
Satyajit Sahoo
bf1ee2d9ff
chore: master -> main
2020-06-16 21:42:22 +02:00
Kang Byung Seon
35d6b9e3a4
fix: don't use deprecated currentlyFocusedField ( #8365 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-06-15 15:12:56 +02:00
Satyajit Sahoo
5042c86a09
chore: upgrade depenendecies
2020-06-12 18:37:40 +02:00
Satyajit Sahoo
34c907ec0a
chore: publish
...
- @react-navigation/stack@5.5.1
2020-06-08 11:21:27 +02:00
Satyajit Sahoo
1ae07af796
fix: make sure the header is on top of the view
2020-06-08 11:17:53 +02:00
Satyajit Sahoo
220af93db5
chore: publish
...
- @react-navigation/stack@5.5.0
2020-06-08 10:56:32 +02:00
Satyajit Sahoo
1f27e4b1f6
fix: ignore onOpen from route that wasn't closing
...
closes #8257
2020-06-08 10:48:04 +02:00
Satyajit Sahoo
9c06a92d09
fix: fix blank screen with animationEnabled: false & headerShown: false
...
closes #8391
2020-06-08 10:17:02 +02:00
Satyajit Sahoo
e0e0f79793
feat: automatically hide header in nested stacks
2020-06-08 08:14:34 +02:00
Jeroen Verfallie
c7e4bf94e6
fix: pass gestureRef to PanGestureHandlerNative ( #8394 )
...
In the current implementation the ref is unused, resulting in a constant `current: {null}` on the context.
2020-06-08 08:05:59 +02:00
Satyajit Sahoo
7024d4bb81
docs: fix comment about headerBacktitleVisible
2020-06-08 01:47:09 +02:00
Satyajit Sahoo
21f61d6eeb
chore: publish
...
- @react-navigation/bottom-tabs@5.5.2
- @react-navigation/compat@5.1.26
- @react-navigation/core@5.10 .0
- @react-navigation/drawer@5.8.2
- @react-navigation/material-bottom-tabs@5.2.10
- @react-navigation/material-top-tabs@5.2.10
- @react-navigation/native@5.5.1
- @react-navigation/stack@5.4.2
2020-06-06 02:15:26 +02:00
Satyajit Sahoo
e653d55479
refactor: minor tweaks
2020-06-06 00:38:38 +02:00
Ashoat Tevosyan
78afbffe97
fix: relatively position float Header if !headerTransparent ( #8285 )
...
## Motivation
Right now `headerMode: float` renders an absolutely-positioned header. To offset the content appropriately, it then measures the height of the header and compensates with a margin. This approach unfortunately doesn't work well for animations.
Before | After
:-------------------------:|:-------------------------:
<img src="http://ashoat.com/jerky_absolute.gif " width="300" /> | <img src="http://ashoat.com/smooth_relative.gif " width="300" />
## Approach
When rendering the header absolutely we want to render it above (after, in sibling order) the content. But when rendering it relatively we want to render it first (before, in sibling order).
The margin compensation code is no longer necessary so I removed it.
## Test plan
I used the `StackHeaderCustomization` example to make sure transitions between `headerTransparent` and `!headerTransparent` looked good. I added a custom (taller) header to test if height transitions looked good, and toggled `headerShown` to make sure that transitioned well too.
Would be open to any other suggestions of things to test!
2020-06-06 00:12:00 +02:00
Satyajit Sahoo
7ac4c13d44
chore: publish
...
- @react-navigation/bottom-tabs@5.5.1
- @react-navigation/compat@5.1.25
- @react-navigation/core@5.9.0
- @react-navigation/drawer@5.8.1
- @react-navigation/material-bottom-tabs@5.2.9
- @react-navigation/material-top-tabs@5.2.9
- @react-navigation/native@5.5.0
- @react-navigation/stack@5.4.1
2020-05-27 18:32:30 +02:00
Satyajit Sahoo
9d822b95a6
fix: fix type of style for various options
2020-05-26 17:33:50 +02:00
Bright Lee
00c23f2c9e
fix: allow HeaderBackground's subViews to be touchable ( #8317 )
2020-05-25 15:50:24 +02:00
Satyajit Sahoo
ced2a24aa6
chore: publish
...
- @react-navigation/bottom-tabs@5.5.0
- @react-navigation/compat@5.1.24
- @react-navigation/core@5.8.2
- @react-navigation/drawer@5.8.0
- @react-navigation/material-bottom-tabs@5.2.8
- @react-navigation/material-top-tabs@5.2.8
- @react-navigation/native@5.4.3
- @react-navigation/routers@5.4.7
- @react-navigation/stack@5.4.0
2020-05-23 18:36:57 +02:00
Satyajit Sahoo
df3544d9b4
Revert "fix: allow HeaderBackground's subViews to be touchable" ( #8316 )
2020-05-23 18:22:35 +02:00
Bright Lee
021a9111d7
fix: allow HeaderBackground's subViews to be touchable ( #8314 )
...
When you're using the following options on `Stack`, the touch event goes to the behind of the Header and we can't really solve this problem in given `headerBackground` component level.
```
options={{
headerTransparent: true,
headerBackground:
```
### Problem

2020-05-23 18:14:59 +02:00
Satyajit Sahoo
6dd45fcff9
fix: don't ignore previous header heights on layout update
2020-05-21 12:54:12 +02:00
Janic Duplessis
d62fbfe255
feat: update react-native-safe-area-context to 1.0.0 ( #8182 )
...
I made sure 1.0 is backwards compatible with react-navigation, which means using rn-safe-area-context@1+ with older versions of react-navigation will still work.
2020-05-21 11:25:36 +02:00
Evan Bacon
b14094619f
chore: ignore __tests__ in prod builds ( #8307 )
...
The tests are being bundled and shipped in prod, this adds a bit of unneeded weight to npm installs. Now they won't be included.
```
@react-navigation/core
- before: 274 files - pkg: 211.0 kB - unpkg: 1 MB
- after: 238 files - pkg: 192.1 kB - unpkg: 827.3 kB
```
2020-05-21 11:15:12 +02:00
Satyajit Sahoo
175c07a28c
chore: publish
...
- @react-navigation/example@5.1.0
- @react-navigation/bottom-tabs@5.4.7
- @react-navigation/compat@5.1.23
- @react-navigation/core@5.8.1
- @react-navigation/drawer@5.7.7
- @react-navigation/material-bottom-tabs@5.2.7
- @react-navigation/material-top-tabs@5.2.7
- @react-navigation/native@5.4.2
- @react-navigation/routers@5.4.6
- @react-navigation/stack@5.3.9
2020-05-20 13:27:29 +02:00
osdnk
2980627cbf
chore: publish
...
- @react-navigation/bottom-tabs@5.4.6
- @react-navigation/compat@5.1.22
- @react-navigation/core@5.8.0
- @react-navigation/drawer@5.7.6
- @react-navigation/material-bottom-tabs@5.2.6
- @react-navigation/material-top-tabs@5.2.6
- @react-navigation/native@5.4.1
- @react-navigation/routers@5.4.5
- @react-navigation/stack@5.3.8
2020-05-20 10:29:05 +02:00
Satyajit Sahoo
0194de1061
chore: upgrade bob
2020-05-19 14:25:20 +02:00
Satyajit Sahoo
9304a8a16c
chore: publish
...
- @react-navigation/bottom-tabs@5.4.5
- @react-navigation/compat@5.1.21
- @react-navigation/core@5.7.0
- @react-navigation/drawer@5.7.5
- @react-navigation/material-bottom-tabs@5.2.5
- @react-navigation/material-top-tabs@5.2.5
- @react-navigation/native@5.4.0
- @react-navigation/stack@5.3.7
2020-05-17 01:20:24 +02:00
Satyajit Sahoo
c481748f00
chore: publish
...
- @react-navigation/stack@5.3.6
2020-05-15 17:39:47 +02:00
Satyajit Sahoo
d45dbe97dc
fix: reduce header title margin. fixes #8267
2020-05-15 17:39:33 +02:00
Satyajit Sahoo
1dddaff45c
chore: publish
...
- @react-navigation/bottom-tabs@5.4.4
- @react-navigation/compat@5.1.20
- @react-navigation/core@5.6.1
- @react-navigation/drawer@5.7.4
- @react-navigation/material-bottom-tabs@5.2.4
- @react-navigation/material-top-tabs@5.2.4
- @react-navigation/native@5.3.2
- @react-navigation/stack@5.3.5
2020-05-14 13:22:54 +02:00
Satyajit Sahoo
2ff0531695
chore: publish
...
- @react-navigation/bottom-tabs@5.4.3
- @react-navigation/compat@5.1.19
- @react-navigation/core@5.6.0
- @react-navigation/drawer@5.7.3
- @react-navigation/material-bottom-tabs@5.2.3
- @react-navigation/material-top-tabs@5.2.3
- @react-navigation/native@5.3.1
- @react-navigation/stack@5.3.4
2020-05-14 12:45:50 +02:00
Satyajit Sahoo
6dce0780ed
chore: publish
...
- @react-navigation/stack@5.3.3
2020-05-11 17:31:35 +02:00
Hein Rutjes
dd7cff2016
fix: fix ios transitionspec settle time ( #8028 )
...
# Why
When using the stack navigator on iOS, it takes a (too) long time before the `didFocus` and stack `onTransitionEnd` lifecycle events are triggered. The visual animation is typically completed well within 500 msec, but it takes around 1000 msec before the previously mentioned events are emitted. This causes problems with for instance `react-navigation-shared-element`, which relies on these events to fire in a timely manner(https://github.com/IjzerenHein/react-navigation-shared-element/issues/24 )
# How
This PR updates the resting threshold so that the underlying spring settles faster. No visual differences or differences in smoothness were witnessed during testing.
## Before
Time to settle `didFocus`: **941**
Time to settle `stack.onTransitionEnd`: **924**
```
15:59:55.743 [ListViewStack]startTransition, closing: false, nestingDepth: 1
15:59:55.744 [ListViewStack]willFocus, scene: "DetailScreen", depth: 1, closing: false
15:59:55.745 Transition start: "ListScreen" -> "DetailScreen"
15:59:56.667 [ListViewStack]endTransition, closing: false, nestingDepth: 1
15:59:56.668 Transition end: "DetailScreen"
15:59:56.685 [ListViewStack]didFocus, scene: "DetailScreen", depth: 1
```
## After
Time to settle `didFocus`: **529**
Time to settle `stack.onTransitionEnd`: **512**
```
15:55:00.686 [ListViewStack]startTransition, closing: false, nestingDepth: 1
15:55:00.687 [ListViewStack]willFocus, scene: "DetailScreen", depth: 1, closing: false
15:55:00.687 Transition start: "ListScreen" -> "DetailScreen"
15:55:01.198 [ListViewStack]endTransition, closing: false, nestingDepth: 1
15:55:01.199 Transition end: "DetailScreen"
15:55:01.216 [ListViewStack]didFocus, scene: "DetailScreen", depth: 1
2020-05-11 17:03:12 +02:00
Satyajit Sahoo
740c6b6706
chore: publish
...
- @react-navigation/bottom-tabs@5.4.2
- @react-navigation/compat@5.1.18
- @react-navigation/drawer@5.7.2
- @react-navigation/material-bottom-tabs@5.2.2
- @react-navigation/material-top-tabs@5.2.2
- @react-navigation/native@5.3.0
- @react-navigation/stack@5.3.2
2020-05-10 08:34:40 +02:00
Satyajit Sahoo
b85a1c3055
chore: publish
...
- @react-navigation/bottom-tabs@5.4.1
- @react-navigation/compat@5.1.17
- @react-navigation/core@5.5.2
- @react-navigation/drawer@5.7.1
- @react-navigation/material-bottom-tabs@5.2.1
- @react-navigation/material-top-tabs@5.2.1
- @react-navigation/native@5.2.6
- @react-navigation/routers@5.4.4
- @react-navigation/stack@5.3.1
2020-05-08 19:16:47 +02:00
Satyajit Sahoo
18f8188dc8
chore: add source key to package.json
2020-05-08 19:14:29 +02:00
Satyajit Sahoo
47a1229837
fix: fix building typescript definitions. closes #8216
2020-05-08 19:09:13 +02:00
Satyajit Sahoo
00b11e303e
chore: publish
...
- @react-navigation/bottom-tabs@5.4.0
- @react-navigation/compat@5.1.16
- @react-navigation/core@5.5.1
- @react-navigation/drawer@5.7.0
- @react-navigation/material-bottom-tabs@5.2.0
- @react-navigation/material-top-tabs@5.2.0
- @react-navigation/native@5.2.5
- @react-navigation/routers@5.4.3
- @react-navigation/stack@5.3.0
2020-05-08 16:34:03 +02:00
Satyajit Sahoo
d1a6f3e30e
chore: upgrade depenendecies
2020-05-08 16:06:28 +02:00
Satyajit Sahoo
eb24fea8b9
chore: upgrade depenendecies
2020-05-07 21:08:55 +02:00
Satyajit Sahoo
bea14aa26f
feat: add generic type aliases for screen props
...
closes #7971
2020-05-06 19:00:04 +02:00
Satyajit Sahoo
4d1e102f8c
fix: include safe are insets in title's margins
2020-05-06 16:49:02 +02:00
Satyajit Sahoo
f07cd13561
fix: add proper margins to the header title
2020-05-06 16:14:40 +02:00
Satyajit Sahoo
3381d680d7
chore: publish
...
- @react-navigation/bottom-tabs@5.3.4
- @react-navigation/compat@5.1.15
- @react-navigation/core@5.5.0
- @react-navigation/drawer@5.6.4
- @react-navigation/material-bottom-tabs@5.1.15
- @react-navigation/material-top-tabs@5.1.15
- @react-navigation/native@5.2.4
- @react-navigation/stack@5.2.19
2020-05-05 20:07:13 +02:00
Satyajit Sahoo
6bec620a3f
chore: publish
...
- @react-navigation/bottom-tabs@5.3.3
- @react-navigation/compat@5.1.14
- @react-navigation/drawer@5.6.3
- @react-navigation/material-bottom-tabs@5.1.14
- @react-navigation/material-top-tabs@5.1.14
- @react-navigation/native@5.2.3
- @react-navigation/stack@5.2.18
2020-05-01 17:31:59 +02:00
Satyajit Sahoo
719e1a7b46
chore: publish
...
- @react-navigation/bottom-tabs@5.3.2
- @react-navigation/compat@5.1.13
- @react-navigation/drawer@5.6.2
- @react-navigation/material-bottom-tabs@5.1.13
- @react-navigation/material-top-tabs@5.1.13
- @react-navigation/native@5.2.2
- @react-navigation/stack@5.2.17
2020-05-01 16:51:12 +02:00
Satyajit Sahoo
b66e3436a7
chore: publish
...
- @react-navigation/bottom-tabs@5.3.1
- @react-navigation/compat@5.1.12
- @react-navigation/drawer@5.6.1
- @react-navigation/material-bottom-tabs@5.1.12
- @react-navigation/material-top-tabs@5.1.12
- @react-navigation/native@5.2.1
- @react-navigation/stack@5.2.16
2020-05-01 00:28:55 +02:00
Satyajit Sahoo
1ee3038a4d
chore: publish
...
- @react-navigation/bottom-tabs@5.3.0
- @react-navigation/compat@5.1.11
- @react-navigation/core@5.4.0
- @react-navigation/drawer@5.6.0
- @react-navigation/material-bottom-tabs@5.1.11
- @react-navigation/material-top-tabs@5.1.11
- @react-navigation/native@5.2.0
- @react-navigation/routers@5.4.2
- @react-navigation/stack@5.2.15
2020-04-30 23:01:46 +02:00