Satyajit Sahoo
978b197446
chore: publish
...
- @react-navigation/bottom-tabs@5.6.0
- @react-navigation/compat@5.1.27
- @react-navigation/core@5.11 .0
- @react-navigation/devtools@5.1.0
- @react-navigation/drawer@5.8.3
- @react-navigation/material-bottom-tabs@5.2.11
- @react-navigation/material-top-tabs@5.2.11
- @react-navigation/native@5.6.0
- @react-navigation/routers@5.4.8
- @react-navigation/stack@5.6.0
2020-06-24 22:29:01 +02:00
Satyajit Sahoo
d85d27c432
fix: fix forward with history API. closes #8409
2020-06-24 21:50:30 +02:00
Satyajit Sahoo
f00091d7ab
refactor: use ts-expect-errpr instead of ts-ignore
2020-06-24 20:07:32 +02:00
Satyajit Sahoo
a021cfb8af
feat: rework linking configuration to be more strict ( #8502 )
...
The PR changes a few things about linking configuration:
- Moves the configuration for screens to a screens property so that it's possible to specify other options like `initialRouteName` for the navigator at root
- The nesting in the configuration needs to strictly match the shape of the navigation tree, it can't just rely on URL's shape anymore
- If a screen is not specified in the configuration, it won't be parsed to/from the URL (this is essential to handle unmatched screens)
- Treat `path: ''` and no specified path in the same way, unless `exact` is specified
- Disallow specifying unmatched screen with old format
- Add support for `initialRouteName` at top level
- Automatically adapt old configuration to new format
2020-06-24 16:54:24 +02:00
Satyajit Sahoo
8177c45d14
feat: add an onReady callback to the container ( #8491 )
2020-06-22 14:03:57 +02:00
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
Satyajit Sahoo
5042c86a09
chore: upgrade depenendecies
2020-06-12 18:37:40 +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
5dcaf903f3
refactor: rework history stack integration ( #8367 )
...
The PR reworks history integration to better integrate with browser's history stack and supports nested navigation more reliably:
- On each navigation, save the navigation in memory and use it to reset the state when user presses back/forward
- Improve heuristic to determine if we should do a push, replace or back
This closes #8230 , closes #8284 and closes #8344
2020-06-05 23:02:35 +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
52d5cb4179
chore: add an example for SSR ( #8298 )
...
<img width="740" alt="Screen Shot 2020-05-20 at 16 31 30" src="https://user-images.githubusercontent.com/1174278/82458770-673d8880-9ab7-11ea-81d3-8ac0c1e52705.png ">
2020-05-26 16:07:47 +02:00
Satyajit Sahoo
af1722d1e9
fix: export types from /native
2020-05-26 14:11:48 +02:00
Satyajit Sahoo
0b1a718756
feat: add ref to get current options in ServerContainer ( #8333 )
...
User can pass a `ref` to the container to get current options, like they can with `NavigationContainer`:
```js
const ref = React.createRef();
const html = renderToString(
<ServerContainer ref={ref}>
<App />
</ServerContainer>
);
ref.current.getCurrentOptions(); // Options for screen
```
2020-05-26 13:55:06 +02:00
Satyajit Sahoo
68e750d5a6
feat: add a ServerContainer component for SSR ( #8297 )
...
When doing SSR, the app needs to be aware of request URL to render correct navigation state.
The `ServerContainer` component lets us pass the `location` object to use for SSR.
The shape of the `location` object matches the `location` object in the browser.
Usage:
```js
ReactDOM.renderToString(
<ServerContainer location={{ pathname: req.path, search: req.search }}>
<App />
</ServerContainer>
);
```
Updated example: https://github.com/react-navigation/react-navigation/pull/8298
2020-05-24 14:28:16 +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
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
60cb3c9ba7
feat: add a PathConfig type
2020-05-15 18:57:28 +02:00
Satyajit Sahoo
d14f38b80a
fix: fix types for linking options
2020-05-15 18:37:58 +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
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
039017bc2a
feat: initialState should take priority over deep link
2020-05-10 08:28:48 +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
Linus Unnebäck
85ae378d8c
fix: return a promise-like from getInitialState ( #8210 )
2020-05-07 20:56:55 +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
9fd2635756
fix: return undefined for buildLink if linking is not enabled
2020-05-04 06:35:22 +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
c7b8e2e966
fix: default linking enabled to true
2020-05-01 17:28:41 +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
10eca8b92e
fix: don't throw when using 'useLinking'. fixes #8171
2020-05-01 16:49:06 +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
1c075ffb16
fix: render fallback only if linking is enabled. closes #8161
2020-05-01 00:27:42 +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
499c50cd43
refactor: make history type-checked
2020-04-29 19:13:14 +02:00
Satyajit Sahoo
ae5442ebe8
fix: return onPress instead of onClick for useLinkProps
2020-04-28 23:05:16 +02:00
Satyajit Sahoo
6dd52d35cf
refactor: simplify resolving the thenable
2020-04-28 16:14:58 +02:00
Satyajit Sahoo
d6fa279d93
fix: add catch to thenable returned by getInitialState
2020-04-28 15:35:06 +02:00
Satyajit Sahoo
f2291d110f
feat: add a useLinkProps hook
2020-04-27 17:45:20 +02:00
Satyajit Sahoo
942d2be2c7
feat: add action prop to Link
2020-04-27 17:45:20 +02:00