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
Satyajit Sahoo
de5d985f3b
chore: upgrade depenendecies
2020-04-07 15:44:58 +02:00
Satyajit Sahoo
b71de6cc79
fix: mark type exports for all packages
2020-04-07 11:22:47 +02:00
raajnadar
303f0b78a5
fix: separate normal exports and type exports
2020-04-07 11:17:06 +02:00
Satyajit Sahoo
ce3994c82c
fix: switch order of focus and blur events. closes #7963
2020-04-07 11:07:16 +02:00
Satyajit Sahoo
ba1f405129
feat: make replace bubble up
2020-04-07 00:02:54 +02:00
Satyajit Sahoo
d4fd906915
fix: workaround warning about setState in another component in render
2020-04-06 23:58:25 +02:00
Vinícius Fraga Modesto
b7fa90bf8d
docs: fixes typo ( #7923 )
...
This PR fixes a typo in activeBackgroundColor's description
2020-03-31 17:56:26 +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
@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
Satyajit Sahoo
9973db86f0
chore: use non-secure nanoid to be able to run in RN
2020-03-30 22:04:53 +02:00
max
8432e5ab25
fix: dismiss keyboard on screen change for android
2020-03-30 21:50:52 +02:00
Satyajit Sahoo
9bb5cfded3
refactor: replace shortid with nanoid. closes #7858
2020-03-30 21:42:58 +02:00
Satyajit Sahoo
4ac40b5c5d
chore: update typescript and babel
2020-03-30 21:42:58 +02:00
Wojciech Lewicki
cd47915861
fix: handle no path property and undefined query params ( #7911 )
2020-03-30 17:11:33 +02:00
Andrius Janauskas
d649fbc669
fix: finish stack animation on CANCELLED event ( #7898 )
...
fixes #7897
2020-03-30 14:36:04 +02:00