Satyajit Sahoo
ec840692ec
refactor: make state getter hook more generic
2020-07-01 20:41:20 +02:00
Satyajit Sahoo
1cae93331d
refactor: consolidate action and focus listeners
2020-07-01 20:10:38 +02:00
Satyajit Sahoo
4edc2a64e2
chore: limit number of jest workers on circle ci
2020-06-30 18:34:43 +02:00
Satyajit Sahoo
75c99b5a12
chore: add missing babel-loader
2020-06-30 18:23:04 +02:00
Satyajit Sahoo
9ba2f84d18
test: add basic unit tests for all navigators
2020-06-30 16:14:52 +02:00
Satyajit Sahoo
2477db47a0
chore: publish
...
- @react-navigation/bottom-tabs@5.6.1
- @react-navigation/compat@5.1.28
- @react-navigation/core@5.11 .1
- @react-navigation/devtools@5.1.1
- @react-navigation/drawer@5.8.4
- @react-navigation/material-bottom-tabs@5.2.12
- @react-navigation/material-top-tabs@5.2.12
- @react-navigation/native@5.6.1
- @react-navigation/stack@5.6.2
@react-navigation/bottom-tabs@5.6.1
@react-navigation/compat@5.1.28
@react-navigation/core@5.11.1
@react-navigation/devtools@5.1.1
@react-navigation/drawer@5.8.4
@react-navigation/material-bottom-tabs@5.2.12
@react-navigation/material-top-tabs@5.2.12
@react-navigation/native@5.6.1
@react-navigation/stack@5.6.2
2020-06-25 17:31:40 +02:00
Satyajit Sahoo
d1210a861b
fix: fix error with type definitions. closes #8511
2020-06-25 17:27:48 +02:00
Satyajit Sahoo
c4d2a8a828
chore: publish
...
- @react-navigation/stack@5.6.1
@react-navigation/stack@5.6.1
2020-06-25 11:45:59 +02:00
Satyajit Sahoo
fc95d7a256
fix: fix showing back button with headerMode=screen. fixes #8508
2020-06-25 11:42:19 +02:00
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
@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
c65f9ef1a9
fix: make sure we don't miss dimensions updates
2020-06-24 22:09:00 +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
67cd44d24b
refactor: handle unhandled action in container
2020-06-24 17:09:06 +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
a2d649faf1
feat: show back button in nested stack
2020-06-24 12:45:40 +02:00
Attila Szabo
1024a86a07
docs: updated description for drawer ( #8497 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-06-23 22:21:10 +02:00
Satyajit Sahoo
c94d79d3a5
chore: add a sponsorship button to the repo
2020-06-23 22:15:00 +02:00
Satyajit Sahoo
37bbbbe869
fix: workaround keyboard dismissing on focus
...
closes #8414 , closes #8478
2020-06-23 19:17:03 +02:00
Steven Conaway
84aea698f2
docs: fix grammar issue in a readme
2020-06-22 16:23:20 +02:00
Satyajit Sahoo
8177c45d14
feat: add an onReady callback to the container ( #8491 )
2020-06-22 14:03:57 +02:00
Satyajit Sahoo
16128199ed
fix: remove broken showIcon option from bottom-tabs
2020-06-22 12:05:05 +02:00
Satyajit Sahoo
ea5affd914
fix: use interpolateNode in drawer to support Reanimated 2
2020-06-22 11:45:52 +02:00
Satyajit Sahoo
d2444887be
fix: more improvements to types
2020-06-22 11:45:52 +02:00
Wojciech Lewicki
962456beb6
fix: fix screen disappearing on Android ( #8473 )
...
Added `collapsable={false}` to the View in order for the Android to render screens properly. This issue is most probably similar to 9c06a92d09 but fixes it on Android since the View seems to be removed from a native view hierarchy due to not drawing anything. To see the bug go to https://github.com/software-mansion/react-native-screens/issues/544 .
2020-06-19 19:38:32 +02:00
Satyajit Sahoo
1aadc79fb8
refactor: enforce import type everywhere
2020-06-17 12:05:40 +02:00
Satyajit Sahoo
b14fd9453d
chore: better check versions action
2020-06-16 22:44:03 +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
6730690529
fix: fix getCurrentOptions for nested screens
2020-06-16 15:38:09 +02:00
Satyajit Sahoo
afc83eedf8
fix: fix getCurrentOptions for nested screens
2020-06-16 15:27:15 +02:00
Satyajit Sahoo
24e4333ec6
chore: update github workflows
2020-06-16 14:05:27 +02:00
Guilherme Pacheco
4480d2fe04
feat: add iconStyle prop to bottom tab bar options ( #8188 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-06-15 19:11:03 +02:00
Satyajit Sahoo
33476b9cb5
refactor: tweak type for screen options
2020-06-15 18:34:08 +02:00
Satyajit Sahoo
07c30b2847
refactor: tweak types for bottom tab bar
2020-06-15 18:01:37 +02:00
Michał Osadnik
fe3f98eb9c
feat: add event for options on container ( #8334 )
2020-06-15 17:56:01 +02:00
Kang Byung Seon
35d6b9e3a4
fix: don't use deprecated currentlyFocusedField ( #8365 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-06-15 15:12:56 +02:00
Satyajit Sahoo
95b044ecf9
feat: add devtools package ( #8436 )
...
The `devtools` package extracts the redux devtools extension integration to a separate package. In future we can add more tools such as flipper integration to this package.
Usage:
```js
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { useReduxDevToolsExtension } from '@react-navigation/devtools';
export default function App() {
const navigationRef = React.useRef();
useReduxDevToolsExtension(navigationRef);
return (
<NavigationContainer ref={navigationRef}>{/* ... */}</NavigationContainer>
);
}
```
2020-06-15 13:53:17 +02:00
Satyajit Sahoo
f51f9c8493
feat: add helper to get focused route name from nested state ( #8435 )
...
Currently, to access the focused child screen, we need to do something like this:
```js
const routeName = route.state
? route.state.routes[route.state.index].name
: route.params?.screen || 'Feed';
```
However, it doesn't handle some cases, such as when `route.state` is partial. This helper will make it easier:
```js
const routeName = getFocusedRouteNameFromRoute(route) ?? 'Feed';
```
2020-06-15 13:52:38 +02:00
Rajendran Nadar
e000138fe5
chore: add v5 package versions in readme ( #8413 )
2020-06-15 10:13:44 +02:00
Satyajit Sahoo
5042c86a09
chore: upgrade depenendecies
2020-06-12 18:37:40 +02:00
Satyajit Sahoo
34c907ec0a
chore: publish
...
- @react-navigation/stack@5.5.1
@react-navigation/stack@5.5.1
2020-06-08 11:21:27 +02:00
Satyajit Sahoo
1ae07af796
fix: make sure the header is on top of the view
2020-06-08 11:17:53 +02:00
Satyajit Sahoo
220af93db5
chore: publish
...
- @react-navigation/stack@5.5.0
@react-navigation/stack@5.5.0
2020-06-08 10:56:32 +02:00
Satyajit Sahoo
1f27e4b1f6
fix: ignore onOpen from route that wasn't closing
...
closes #8257
2020-06-08 10:48:04 +02:00
Satyajit Sahoo
9c06a92d09
fix: fix blank screen with animationEnabled: false & headerShown: false
...
closes #8391
2020-06-08 10:17:02 +02:00
Satyajit Sahoo
e0e0f79793
feat: automatically hide header in nested stacks
2020-06-08 08:14:34 +02:00
Jeroen Verfallie
c7e4bf94e6
fix: pass gestureRef to PanGestureHandlerNative ( #8394 )
...
In the current implementation the ref is unused, resulting in a constant `current: {null}` on the context.
2020-06-08 08:05:59 +02:00
Satyajit Sahoo
7024d4bb81
docs: fix comment about headerBacktitleVisible
2020-06-08 01:47:09 +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
@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