ahmadj-levelbenefits
80ff5a9c54
feat: add an unhandled action listener ( #8895 )
...
Often developers miss these console messages: this allows missed routes to be emitted to whatever event logger users prefer.
2020-10-09 16:49:20 +02:00
Kaushil Ruparelia
90ebfc40b3
feat: make react-native-vector-icons optional ( #8936 )
...
Referenced from 4b26429c49/src/components/MaterialCommunityIcon.tsx (L14)
https://callstack.github.io/react-native-paper/getting-started.html
> To get smaller bundle size by excluding modules you don't use, you can use our optional babel plugin. The plugin automatically rewrites the import statements so that only the modules you use are imported instead of the whole library. Add react-native-paper/babel to the plugins section in your babel.config.js for production environment. It should look like this:
> ```
> module.exports = {
> presets: ['module:metro-react-native-babel-preset'],
> env: {
> production: {
> plugins: ['react-native-paper/babel'],
> },
> },
> };
> ```
> If you created your project using Expo, it'll look something like this:
> ```
> module.exports = function(api) {
> api.cache(true);
> return {
> presets: ['babel-preset-expo'],
> env: {
> production: {
> plugins: ['react-native-paper/babel'],
> },
> },
> };
> };
> ```
Closes #8821
2020-10-09 13:41:37 +02:00
Satyajit Sahoo
091b2a2038
fix: handle pushing a route with duplicate key
...
Currently, stack router adds a duplicate route when pushing a new route with a key that already exists. This is a buggy behaviour since keys need to be unique in the stack.
This commit fixes the behaviour to bring the existing route with the same key to focus (and merge new params if any) instead of adding a duplicate route.
2020-10-09 00:28:45 +02:00
Satyajit Sahoo
01f86d2ac6
chore: publish
...
- @react-navigation/bottom-tabs@5.9.2
- @react-navigation/compat@5.2.8
- @react-navigation/core@5.12 .5
- @react-navigation/devtools@5.1.7
- @react-navigation/drawer@5.9.3
- @react-navigation/material-bottom-tabs@5.2.19
- @react-navigation/material-top-tabs@5.2.19
- @react-navigation/native@5.7.6
- @react-navigation/stack@5.9.3
@react-navigation/bottom-tabs@5.9.2
@react-navigation/compat@5.2.8
@react-navigation/core@5.12.5
@react-navigation/devtools@5.1.7
@react-navigation/drawer@5.9.3
@react-navigation/material-bottom-tabs@5.2.19
@react-navigation/material-top-tabs@5.2.19
@react-navigation/native@5.7.6
@react-navigation/stack@5.9.3
2020-10-07 11:39:56 +02:00
Satyajit Sahoo
c49dab31b2
fix: use route keys instead of index for lazy load
2020-10-07 11:36:02 +02:00
Satyajit Sahoo
16e7ac131f
chore: upgrade depenendecies
2020-10-07 11:18:38 +02:00
Satyajit Sahoo
9e3650831c
fix: add missing check for initial state on web
2020-10-01 11:23:28 +02:00
Satyajit Sahoo
e523138321
chore: publish
...
- @react-navigation/bottom-tabs@5.9.1
- @react-navigation/compat@5.2.7
- @react-navigation/drawer@5.9.2
- @react-navigation/material-bottom-tabs@5.2.18
- @react-navigation/material-top-tabs@5.2.18
- @react-navigation/native@5.7.5
- @react-navigation/stack@5.9.2
@react-navigation/bottom-tabs@5.9.1
@react-navigation/compat@5.2.7
@react-navigation/drawer@5.9.2
@react-navigation/material-bottom-tabs@5.2.18
@react-navigation/material-top-tabs@5.2.18
@react-navigation/native@5.7.5
@react-navigation/stack@5.9.2
2020-09-28 16:58:23 +02:00
Satyajit Sahoo
cc8f1f4205
fix: check for correct resolved value in useThenable. fixes #8798
2020-09-28 16:56:26 +02:00
Satyajit Sahoo
e18578f83f
chore: publish
...
- @react-navigation/bottom-tabs@5.9.0
- @react-navigation/compat@5.2.6
- @react-navigation/core@5.12 .4
- @react-navigation/devtools@5.1.6
- @react-navigation/drawer@5.9.1
- @react-navigation/material-bottom-tabs@5.2.17
- @react-navigation/material-top-tabs@5.2.17
- @react-navigation/native@5.7.4
- @react-navigation/routers@5.4.12
- @react-navigation/stack@5.9.1
@react-navigation/bottom-tabs@5.9.0
@react-navigation/compat@5.2.6
@react-navigation/core@5.12.4
@react-navigation/devtools@5.1.6
@react-navigation/drawer@5.9.1
@react-navigation/material-bottom-tabs@5.2.17
@react-navigation/material-top-tabs@5.2.17
@react-navigation/native@5.7.4
@react-navigation/routers@5.4.12
@react-navigation/stack@5.9.1
2020-09-23 01:44:39 +02:00
Bill Thornton
a6179b75ad
feat: add compact size for bottom tabs ( #8728 )
...
This adds a compact height mode for iOS devices that are in a compact vertical class (phones in landscape). This is similar to the size change that happens to the header when in landscape mode. Finding a size reference was challenging since most apps lock phones to portrait, but [this answer](https://stackoverflow.com/a/25550871 ) on Stack Overflow states that it should be 32 pts.
I asked yesterday in the Discord chat if there would be interest in this and some other enhancements here, but no on replied, so I thought I would go ahead and open this to at least start a discussion.
2020-09-23 01:41:38 +02:00
Satyajit Sahoo
9b03c8e3a4
fix: fix border showing on hidden tab bar. closes #8869
2020-09-23 01:36:35 +02:00
Satyajit Sahoo
2bb6603aa3
chore: upgrade depenendecies
2020-09-23 01:34:55 +02:00
Martin Heidegger
dcbfe52667
fix: cleanly removing event listeners in useWindowDimensions ( #8866 )
...
This PR fixes the `useWindowDimensions` hook by making sure that the event listener is properly removed.
2020-09-21 13:01:22 +02:00
Thibault Malbranche
97c215d2f2
fix: typo in logic of getStateFromPath ( #8868 )
...
What just randomly reading, but I think there's a typo
```
['ab', 'aba'].sort((a, b) => {
if (a.startsWith(b)) {
return -1;
}
if (b.startsWith(a)) {
return 1;
}
});
(2) ["aba", "ab"]
['ab', 'a'].sort((a, b) => {
if (a.startsWith(b)) {
return -1;
}
if (b.startsWith(a)) {
return 1;
}
});
(2) ["ab", "a"]
```
2020-09-21 13:00:44 +02:00
Bartosz Kaszubowski
050447b9ac
chore: update docs website URLs to avoid the redirect ( #8819 )
2020-09-10 13:34:16 +02:00
pedrobern
1c4bd6813b
fix: add flex: 1 to DrawerItem style ( #8701 )
...
# Summary
In the [DrawerItem](https://github.com/react-navigation/react-navigation/blob/main/packages/drawer/src/views/DrawerItem.tsx ), It's not possible to provide style for the [label wrapper](https://github.com/react-navigation/react-navigation/blob/main/packages/drawer/src/views/DrawerItem.tsx#L167 ), only for the label, so the label wrapper must at least be `flex: 1` in order to be more flexible for custom components, like in the pictures below.
In the below examples, providing `flex: 1` inside the custom component view is not enough, because the wrapper does not grow. This PR will fix it.
An alternative would be creating a new prop `labelStyleWrapper`, but I don't see any motivation for doing so, as this PR would fix it.
## Before

## After

2020-09-02 16:22:31 +02:00
Louis-Alban KIM
2d1da7ef2f
fix: add aria-level to HeaderTitle
2020-09-02 16:21:20 +02:00
Cedric van Putten
70691acdfc
chore: enable faster bundling on preview builds
...
See https://twitter.com/expo/status/1293613036482121728
2020-09-02 16:01:08 +02:00
Brent Vatne
ee71a05570
chore: fix dependencies to be compatible with sdk-38
2020-08-24 11:12:06 +02:00
Satyajit Sahoo
b029e0f660
chore: publish
...
- @react-navigation/bottom-tabs@5.8.0
- @react-navigation/compat@5.2.5
- @react-navigation/core@5.12 .3
- @react-navigation/devtools@5.1.5
- @react-navigation/drawer@5.9.0
- @react-navigation/material-bottom-tabs@5.2.16
- @react-navigation/material-top-tabs@5.2.16
- @react-navigation/native@5.7.3
- @react-navigation/routers@5.4.11
- @react-navigation/stack@5.9.0
@react-navigation/bottom-tabs@5.8.0
@react-navigation/compat@5.2.5
@react-navigation/core@5.12.3
@react-navigation/devtools@5.1.5
@react-navigation/drawer@5.9.0
@react-navigation/material-bottom-tabs@5.2.16
@react-navigation/material-top-tabs@5.2.16
@react-navigation/native@5.7.3
@react-navigation/routers@5.4.11
@react-navigation/stack@5.9.0
2020-08-04 13:28:13 +02:00
Satyajit Sahoo
5625eec621
test: fix e2e tests
2020-08-04 13:14:25 +02:00
Satyajit Sahoo
2a48b917ec
fix: make sure we don't exit the page when going back
2020-08-04 13:04:50 +02:00
Satyajit Sahoo
cd031f0473
chore: upgrade depenendecies
2020-08-04 12:32:11 +02:00
Satyajit Sahoo
b1f1377429
fix: wait longer for history.go and handle interruptions
2020-08-02 15:47:11 +02:00
Wojciech Lewicki
30959a09a6
feat: add action for screens library ( #8663 )
...
Added a github action for submitting issues regarding libraries used in React Navigation.
2020-07-31 17:15:27 +02:00
Brent Vatne
1cb71c6c9a
chore: update example to SDK 38 and bump related dependencies ( #8654 )
2020-07-30 17:00:55 -07:00
Satyajit Sahoo
a5642b437d
fix: fix workflow for publishing expo preview ( #8651 )
2020-07-29 17:25:23 +02:00
Marcel Lasaj
a35ac813b6
feat: expose BottomTabBarButtonProps type ( #8649 )
...
Exposed `BottomTabBarButtonProps` type is needed when providing a custom component to `tabBarButton` property.
2020-07-29 14:33:13 +02:00
Satyajit Sahoo
0b627304aa
feat: allow full configuration of tab bar hide animation
2020-07-29 00:56:42 +02:00
Satyajit Sahoo
d979dfd634
fix: only offset bottom tab on iOS. fixes #8642
2020-07-29 00:41:22 +02:00
Satyajit Sahoo
40e2dbaecf
fix: fix TouchableItem opacity on press on iOS
2020-07-29 00:41:22 +02:00
Spencer Carli
b0cafb3c49
feat: user can specify how long tab hide animation should take ( #8587 )
2020-07-29 00:41:08 +02:00
Satyajit Sahoo
0b455afa95
refactor: use libs with limited platform support explicitly
...
Instead of adding stubs for specific platforms such as Web, Mac OS and Windows, the commit changes the logic to use libraries such as gesture handler and masked view only for the platforms they explictly support. This means that we don't need to manually add all new platforms that aren't supported by these libraries in order for React Navigation to run on those platforms.
2020-07-29 00:24:51 +02:00
Kai Guo
8468c46cab
feat: add Windows and macOS support ( #8570 )
...
react-native-gesture-handler doesn't have Windows/macOS implementation yet, use the web version as stubs for now to enable navigation features for Windows and mac.
Close https://github.com/microsoft/react-native-windows/issues/3884
Close https://github.com/microsoft/react-native-windows/issues/4044
2020-07-28 23:51:41 +02:00
Satyajit Sahoo
1e813dfb5b
chore: publish
...
- @react-navigation/bottom-tabs@5.7.3
- @react-navigation/compat@5.2.4
- @react-navigation/core@5.12 .2
- @react-navigation/devtools@5.1.4
- @react-navigation/drawer@5.8.7
- @react-navigation/material-bottom-tabs@5.2.15
- @react-navigation/material-top-tabs@5.2.15
- @react-navigation/native@5.7.2
- @react-navigation/routers@5.4.10
- @react-navigation/stack@5.8.0
@react-navigation/bottom-tabs@5.7.3
@react-navigation/compat@5.2.4
@react-navigation/core@5.12.2
@react-navigation/devtools@5.1.4
@react-navigation/drawer@5.8.7
@react-navigation/material-bottom-tabs@5.2.15
@react-navigation/material-top-tabs@5.2.15
@react-navigation/native@5.7.2
@react-navigation/routers@5.4.10
@react-navigation/stack@5.8.0
2020-07-28 14:08:02 +02:00
Simon Arm-Riding
ce4eb7e927
fix: add accessibilityState property ( #8548 )
...
React Native 0.62 removes the deprecated `accessibilityStates` property and replaces it with an `accessibilityState` object instead. This PR adds the new property where needed, but leaves the old one in place for backwards compatibility. Without the change, the selected tab in BottomTabNavigator isn't announced properly in VoiceOver.
2020-07-28 11:28:42 +02:00
Madd.is
baea77e332
fix: pass label position flag to label rendering in BottomTabBar ( #8557 )
...
In the process of upgrading from v4, I noticed a regression.
In the past, the function form of `tabBarLabel` did get an `orientation: 'landscape' | 'portrait'`, this is no longer the case.
However, when using a custom Text rendering, we need to apply a margin to the text in horizontal mode.
Since the orientation/horizontal state is decided based on internal heuristics, It is a huge pain with a high bug potential when reimplementing that detection myself.
2020-07-28 11:27:30 +02:00
Martin Treurnicht
15f9b9573e
feat: emit gesture navigation events from stack view ( #8524 )
...
Allows you to subscribe to gesture navigation events, we have a custom keyboard that we want to hide and show when gesture is being used to navigate (same as native keyboard)
2020-07-28 11:26:45 +02:00
Satyajit Sahoo
b70e3fe618
fix: make sure history is correct after rehydration
2020-07-28 11:20:17 +02:00
Tomasz Krzyżowski
1aa8219021
fix: make sure index is correct when rehydrating state for tabs ( #8638 )
...
If the state being rehydrated contained multiple `routes` and had an `index`, we incorrectly kept the same index even if the index of the focused route changed in the state after rehydration. This commit ensures that we also adjust the index appropriately according to the new index of the focused route.
2020-07-28 11:13:01 +02:00
Andrei Barabas
486c3defd2
feat: allow style overrides for HeaderBackButton ( #8626 )
2020-07-28 11:09:23 +02:00
Satyajit Sahoo
0d6a43f663
chore: publish
...
- @react-navigation/compat@5.2.3
@react-navigation/compat@5.2.3
2020-07-22 03:07:54 +02:00
Satyajit Sahoo
5e358b3aad
fix: fix false warning due to change in Object.assign in metro preset
...
#8584
2020-07-22 03:06:55 +02:00
Satyajit Sahoo
7c2b28ae1e
chore: publish
...
- @react-navigation/bottom-tabs@5.7.2
- @react-navigation/compat@5.2.1
- @react-navigation/core@5.12 .1
- @react-navigation/devtools@5.1.3
- @react-navigation/drawer@5.8.6
- @react-navigation/material-bottom-tabs@5.2.14
- @react-navigation/material-top-tabs@5.2.14
- @react-navigation/native@5.7.1
- @react-navigation/stack@5.7.1
@react-navigation/bottom-tabs@5.7.2
@react-navigation/compat@5.2.1
@react-navigation/core@5.12.1
@react-navigation/devtools@5.1.3
@react-navigation/drawer@5.8.6
@react-navigation/material-bottom-tabs@5.2.14
@react-navigation/material-top-tabs@5.2.14
@react-navigation/native@5.7.1
@react-navigation/stack@5.7.1
2020-07-19 14:55:27 +02:00
Satyajit Sahoo
af8b27414c
fix: make sure new state events are emitted when new navigators mount
2020-07-19 14:52:43 +02:00
Satyajit Sahoo
b2a99c2a88
chore: publish
...
- @react-navigation/bottom-tabs@5.7.1
@react-navigation/bottom-tabs@5.7.1
2020-07-14 14:05:18 +02:00
Satyajit Sahoo
2f74541811
fix: don't render badge on bottom tabs if not visible. closes #8577
2020-07-14 14:03:16 +02:00
Satyajit Sahoo
cf09f00472
chore: don't repeat comments for expo preview
2020-07-14 13:44:17 +02:00
Satyajit Sahoo
513482425a
chore: publish
...
- @react-navigation/bottom-tabs@5.7.0
- @react-navigation/compat@5.2.0
- @react-navigation/core@5.12 .0
- @react-navigation/devtools@5.1.2
- @react-navigation/drawer@5.8.5
- @react-navigation/material-bottom-tabs@5.2.13
- @react-navigation/material-top-tabs@5.2.13
- @react-navigation/native@5.7.0
- @react-navigation/routers@5.4.9
- @react-navigation/stack@5.7.0
@react-navigation/bottom-tabs@5.7.0
@react-navigation/compat@5.2.0
@react-navigation/core@5.12.0
@react-navigation/devtools@5.1.2
@react-navigation/drawer@5.8.5
@react-navigation/material-bottom-tabs@5.2.13
@react-navigation/material-top-tabs@5.2.13
@react-navigation/native@5.7.0
@react-navigation/routers@5.4.9
@react-navigation/stack@5.7.0
2020-07-10 22:40:45 +02:00