Satyajit Sahoo
3193a30da6
refactor: add missing methods to container navigation prop
2020-04-29 19:14:24 +02:00
Satyajit Sahoo
499c50cd43
refactor: make history type-checked
2020-04-29 19:13:14 +02:00
ainar
420f6926e1
fix: fix backBehavior with initialRoute ( #8110 )
2020-04-29 13:37:15 +02:00
Satyajit Sahoo
70be3f6d86
fix: fix closing drawer on web with tap on overlay
2020-04-29 13:05:30 +02:00
WoLewicki
bd35b4fc20
fix: parsing url
2020-04-29 12:52:30 +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
b4834ce703
chore: replace AsyncStorage with localStorage on web
2020-04-29 02:16:11 +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
c3fa83efe0
fix: handle empty paths when parsing
2020-04-28 15:12:43 +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
Satyajit Sahoo
b747e527a4
refactor: remove onLink prop for now
2020-04-27 17:45:20 +02:00
Satyajit Sahoo
38020de80b
refactor: simplify API for useLinkBuilder
2020-04-27 17:45:20 +02:00
Satyajit Sahoo
67404f4999
test: configure playwright for e2e tests
2020-04-27 17:45:20 +02:00
Satyajit Sahoo
2792f438fe
feat: add useLinkBuilder hook to build links
...
We need to be able to create links from a navigate action to have accessible links in the built-in components such as drawer and tabs.
2020-04-27 17:45:20 +02:00
satyajit.happy
2573b5beaa
feat: add Link component as useLinkTo hook for navigating to links
...
The `Link` component can be used to navigate to URLs. On web, it'll use an `a` tag for proper accessibility. On React Native, it'll use a `Text`.
Example:
```js
<Link to="/feed/hot">Go to 🔥 </Link>
```
Sometimes we might want more complex styling and more control over the behaviour, or navigate to a URL programmatically. The `useLinkTo` hook can be used for that.
Example:
```js
function LinkButton({ to, ...rest }) {
const linkTo = useLinkTo();
return (
<Button
{...rest}
href={to}
onPress={(e) => {
e.preventDefault();
linkTo(to);
}}
/>
);
}
```
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
@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
c9c825bee6
fix: add config to enable redux devtools integration
2020-04-25 21:46:57 +02:00
Satyajit Sahoo
b172b51f17
fix: fix behaviour of openByDefault in drawer when focus changes
2020-04-23 20:00:47 +02:00
Satyajit Sahoo
9c05af50b4
test: add more tests for TabRouter and history
2020-04-23 18:11:30 +02:00
Satyajit Sahoo
24febf6ea9
fix: spread parent params to children in compat navigator
...
fixes #6785
2020-04-23 14:10:26 +02:00
Satyajit Sahoo
8cbb201f1a
fix: fix typo in navigationOptions
2020-04-23 13:51:40 +02:00
Satyajit Sahoo
2467ce4ff7
chore: publish
...
- @react-navigation/stack@5.2.13
@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
@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
335a04edc1
chore: add action to check package versions
2020-04-20 14:35:07 +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
@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
@react-navigation/bottom-tabs@5.2.7
@react-navigation/compat@5.1.9
@react-navigation/core@5.3.4
2020-04-18 01:28:05 +02:00
Satyajit Sahoo
249248e741
chore: update yarn.lock
2020-04-18 01:24:16 +02:00
Evan Bacon
821343fed3
fix: webkit style error in overlay
2020-04-18 01:14:56 +02:00
Satyajit Sahoo
82edb2581b
fix: hide inactive screens for stack on web ( #8010 )
2020-04-18 01:14:11 +02:00
Satyajit Sahoo
cb67530dc5
chore: tweak album example
2020-04-18 01:13:34 +02:00
Satyajit Sahoo
36689e24c2
feat: add openByDefault option to drawer
2020-04-18 01:13:34 +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
402df73aa2
chore: add link to how to create minimal repro
2020-04-17 00:24:22 +02:00
Satyajit Sahoo
187aefe9c4
fix: handle initial: false for nested route after first initialization
2020-04-14 17:06:58 +02:00
Satyajit Sahoo
2613a62874
chore: add config for netlify
2020-04-12 22:11:22 +02:00
Satyajit Sahoo
6bdf6ae4ed
fix: handle in-page go back when there's no history
...
fixes #7852
2020-04-10 17:59:40 +02:00
Satyajit Sahoo
e2bcf5168c
fix: fix drawer not closing on web
...
fixes #6759
2020-04-10 17:59:07 +02:00
Satyajit Sahoo
dfdba8d741
fix: disable animation by default on web for stack
2020-04-10 17:02:32 +02:00
Satyajit Sahoo
a3f7a5feba
fix: add initial param for actions from deep link
2020-04-10 12:05:16 +02:00
Satyajit Sahoo
004c7d7ab1
fix: add initial option for navigating to nested navigators
...
By default, params passed to nested navigators is used to initialize the navigator if it's not rendered already. The `initial` option would let the user control this behaviour. By specifying `initial: false`, it'll be possible to acheive the old behaviour of rendering the initial route of the stack before navigating to the new screen.
Example:
```js
navigation.navigate('Account', {
screen: 'Settings',
initial: false,
});
```
2020-04-10 11:51: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
@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
cb2f157a56
fix: don't hide content from accessibility with permanent drawer
...
closes #7976
2020-04-08 12:17:09 +02:00
Juang, Yi-Lin
c4acdaa703
docs: fix typo ( #7865 )
2020-04-08 11:35:45 +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
Ruben Grimm
44081172d4
fix: use 1 as default in compatibility pop action
2020-04-07 23:33:38 +02:00