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
Satyajit Sahoo
0a19e94b23
fix: make sure the address bar hides when scrolling on web
...
This commit adds a check to detect if the screen content fills the available body, and if yes, then it adjusts the styles so that scrolling triggers a scroll on the body which hides the address bar in browser.
Tested on Safari in iOS and Chrome on Android.
This behaviour can be overriden by the user by specifying `cardStyle: { flex: 1 }`, which will keep both the header and the address bar always visible.
2020-04-30 21:53:17 +02:00
Satyajit Sahoo
c511bc0b2b
refactor: stub gesture handler on web
...
Gesture handler doesn't work great on Web and causes issues such as disabling text selection even when not enabled. So we stub it out. It also reduces bundle size on web.
2020-04-29 12:49:46 +02:00
Satyajit Sahoo
38020de80b
refactor: simplify API for useLinkBuilder
2020-04-27 17:45:20 +02:00
Satyajit Sahoo
2697355ab2
chore: publish
...
- @react-navigation/bottom-tabs@5.2.8
- @react-navigation/compat@5.1.10
- @react-navigation/core@5.3.5
- @react-navigation/drawer@5.5.1
- @react-navigation/material-bottom-tabs@5.1.10
- @react-navigation/material-top-tabs@5.1.10
- @react-navigation/native@5.1.7
- @react-navigation/routers@5.4.1
- @react-navigation/stack@5.2.14
2020-04-27 02:57:03 +02:00
Satyajit Sahoo
a695cf9c05
fix: don't add back the route being replaced
2020-04-27 02:41:46 +02:00
Satyajit Sahoo
2467ce4ff7
chore: publish
...
- @react-navigation/stack@5.2.13
2020-04-22 17:57:16 +02:00
Satyajit Sahoo
5683bebfd6
chore: publish
...
- @react-navigation/stack@5.2.12
2020-04-22 16:26:11 +02:00
Satyajit Sahoo
78485cea69
fix: animate card to existing closing state on gesture end
...
fixes #7938
2020-04-22 15:16:39 +02:00
Satyajit Sahoo
1613915669
chore: mark screens and masked view as optional in stack
...
Needs e54819c4de to work.
2020-04-22 14:02:21 +02:00
Satyajit Sahoo
5e0069a896
chore: publish
...
- @react-navigation/bottom-tabs@5.2.7
- @react-navigation/compat@5.1.9
- @react-navigation/core@5.3.4
- @react-navigation/drawer@5.5.0
- @react-navigation/material-bottom-tabs@5.1.9
- @react-navigation/material-top-tabs@5.1.9
- @react-navigation/native@5.1.6
- @react-navigation/routers@5.4.0
- @react-navigation/stack@5.2.11
2020-04-18 01:28:05 +02:00
Satyajit Sahoo
82edb2581b
fix: hide inactive screens for stack on web ( #8010 )
2020-04-18 01:14:11 +02:00
Gheorghe Pinzaru
6e51f596fa
fix: ios presentation modal cuts the topOffset on the bottom ( #7943 )
...
* Add padding bottom to ios presentation modal
Because of the translateY moving the screen out to the bottom of view by 10 pt, these 10pt are hidden under the screen, or steal this size from the safe area. To avoid cutting elements, the size of the screen could be decreased by the `topOffset` using padding on the bottom. Fixes #7856
* Update packages/stack/src/TransitionConfigs/CardStyleInterpolators.tsx
Co-Authored-By: Serhii Vecherenko <SDSLeon999@gmail.com >
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
Co-authored-by: Serhii Vecherenko <SDSLeon999@gmail.com >
2020-04-18 01:13:34 +02:00
Satyajit Sahoo
dfdba8d741
fix: disable animation by default on web for stack
2020-04-10 17:02:32 +02:00
Satyajit Sahoo
49f658fbc0
chore: publish
...
- @react-navigation/bottom-tabs@5.2.6
- @react-navigation/compat@5.1.8
- @react-navigation/core@5.3.3
- @react-navigation/drawer@5.4.1
- @react-navigation/material-bottom-tabs@5.1.8
- @react-navigation/material-top-tabs@5.1.8
- @react-navigation/native@5.1.5
- @react-navigation/routers@5.3.0
- @react-navigation/stack@5.2.10
2020-04-08 12:17:31 +02:00
Satyajit Sahoo
f1a8bceba5
fix: make color of shadow element same as card color in stack
2020-04-07 23:34:55 +02:00
Satyajit Sahoo
b71de6cc79
fix: mark type exports for all packages
2020-04-07 11:22:47 +02:00
Satyajit Sahoo
9556aa9eff
chore: publish
...
- @react-navigation/bottom-tabs@5.2.5
- @react-navigation/compat@5.1.7
- @react-navigation/core@5.3.2
- @react-navigation/drawer@5.4.0
- @react-navigation/material-bottom-tabs@5.1.7
- @react-navigation/material-top-tabs@5.1.7
- @react-navigation/native@5.1.4
- @react-navigation/routers@5.2.1
- @react-navigation/stack@5.2.9
2020-03-30 22:22:25 +02:00
Satyajit Sahoo
9a8fea8f2c
fix: when comparing changed routes, only check keys
2020-03-30 22:20:16 +02:00
max
8432e5ab25
fix: dismiss keyboard on screen change for android
2020-03-30 21:50:52 +02:00
Satyajit Sahoo
4ac40b5c5d
chore: update typescript and babel
2020-03-30 21:42:58 +02:00
Andrius Janauskas
d649fbc669
fix: finish stack animation on CANCELLED event ( #7898 )
...
fixes #7897
2020-03-30 14:36:04 +02:00
Satyajit Sahoo
babb5027f9
chore: publish
...
- @react-navigation/stack@5.2.8
2020-03-27 15:01:32 +01:00
osdnk
a248c453ba
chore: publish
...
- @react-navigation/stack@5.2.7
2020-03-26 17:07:40 +01:00
Wojciech Stanisz
e097df880a
fix: add pointerEvents=box-none to overlay View ( #7871 )
2020-03-26 13:38:30 +01:00