Satyajit Sahoo
82900cceff
fix: move keyboardHandlingEnabled to screen options
2021-05-16 03:58:28 +02:00
Satyajit Sahoo
7580efce89
refactor: rename animationPresentation to presentation
2021-05-10 12:42:02 +02:00
Satyajit Sahoo
1179d56c50
feat: return a NavigationContent component from useNavigationBuilder
2021-05-10 00:17:39 +02:00
Satyajit Sahoo
a6e498170f
fix: add a deprecation warning for mode prop in stack
2021-05-09 23:42:12 +02:00
Satyajit Sahoo
08e74af545
fix: fix modal animation not being set properly
2021-05-09 08:06:38 +02:00
Satyajit Sahoo
a369ba3645
fix: make sure disabling react-native-screens works
2021-05-09 06:43:48 +02:00
Satyajit Sahoo
4294318210
refactor: use react-native-screens for web as well
2021-05-09 06:43:09 +02:00
Wojciech Lewicki
8da4c58065
fix: enable screens only on supported platforms ( #9494 )
2021-05-09 06:42:56 +02:00
Satyajit Sahoo
8f2b95ca97
chore: drop support for older versions of react-native-screens
2021-05-09 06:03:38 +02:00
Jesse Katsumata
6866ad2cda
chore: update @types/react-native and remove ts-ignore ( #9518 )
2021-05-09 05:45:52 +02:00
Satyajit Sahoo
4bb0b43f1a
feat: automatically set headerMode if it's modal presentation style
2021-05-08 23:20:12 +02:00
Satyajit Sahoo
260da9b103
docs: update comments for various options
2021-05-08 21:57:14 +02:00
Satyajit Sahoo
9ac709ea1e
refactor: drop mode prop in favor of animationPresentation option
...
BREAKING CHANGE: This drops the mode prop on the navigator in favor of a per-screen option animationPresentation
2021-05-08 07:04:25 +02:00
Satyajit Sahoo
60fa3b9be9
feat: support mixing regular and modal presentation in same stack
2021-05-08 07:04:25 +02:00
Satyajit Sahoo
83242a7bef
refactor: tweak the types
2021-05-01 21:32:10 +02:00
Satyajit Sahoo
cbaabc1288
feat: add a Background component
2021-03-22 19:03:09 +01:00
Satyajit Sahoo
48851c9ebd
refactor: make gestureResponseDistance a number
...
BREAKING CHANGE: now we need to pass a number instead of an object
2021-03-22 02:15:28 +01:00
Satyajit Sahoo
31caaf3071
refactor: set headerMode to screen by default when custom header is specified
2021-03-14 16:43:51 +01:00
Satyajit Sahoo
aacc1b525d
refactor: move headerMode to options
...
BREAKING CHANGE: headerMode is now moved to options instead of props
2021-03-14 16:27:53 +01:00
Satyajit Sahoo
3ad2bcbaf8
fix: consider header colors when managing statusbar
2021-03-13 17:38:46 +01:00
Satyajit Sahoo
faee245d2e
fix: consider header colors when managing statusbar
2021-03-13 17:37:43 +01:00
Satyajit Sahoo
a204edd012
fix: add special statusbar handling to modal presentation
2021-03-12 23:08:13 +01:00
Satyajit Sahoo
24b3f739da
feat: return nearest parent header height for useHeaderHeight
2021-03-12 01:59:40 +01:00
Satyajit Sahoo
2c8401d5cb
feat: export drawer button
2021-03-12 01:43:57 +01:00
Satyajit Sahoo
6cc463f20d
refactor: drop safeAreaInsets option
...
Custom insets can be provided by wrapping the navigator in a SafeAreaProvider, so we don't need an option.
2021-03-12 01:15:01 +01:00
Adam Trzciński
8a6511c491
fix: respect headerStatusBarHeight option in Stack ( #9405 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2021-03-11 13:12:54 +01:00
Satyajit Sahoo
038eb87c42
fix: remove use of deprecated currentlyFocusedField
2021-03-10 05:06:26 +01:00
Satyajit Sahoo
8e0ae5fc79
chore: add deprecation warnings
2021-03-09 17:27:40 +01:00
Satyajit Sahoo
0fc718b49d
chore: upgrade @types/react-native
2021-02-21 23:39:54 +01:00
Satyajit Sahoo
55e6f3dd33
refactor: move Header to elements package
2021-02-11 18:56:40 +01:00
Satyajit Sahoo
509ca49b64
refactor: move more header stuff to elements package
2021-02-04 15:07:22 +01:00
Satyajit Sahoo
07ba7a9687
feat: initial implementation of @react-navigation/elements
2021-01-29 20:11:23 +01:00
Satyajit Sahoo
c345ef1d0b
fix: fix transparent modal on web
2021-01-29 17:45:56 +01:00
Petra Daneva
52dbe4bd66
feat: add pressColor and pressOpacity props to drawerItem ( #8834 )
...
Co-authored-by: Petra Daneva <p.daneva@dineout.bg >
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2021-01-29 17:45:00 +01:00
Satyajit Sahoo
79a85a431c
refactor: don't use absolute position for header
...
BREAKING CHANGE: We now use flexbox for header elements which could break some existing style code which relied on absolute positioning.
2021-01-15 12:06:59 +01:00
Satyajit Sahoo
22a8afac74
feat: don't hardcode header back test ID
...
BREAKING CHANGE: Now the back button test ID can be customized using headerBackTestID option
2021-01-15 11:35:29 +01:00
Satyajit Sahoo
4954d6aae3
fix: enable detachInactiveScreens by default on web for better a11y
2021-01-14 14:53:35 +01:00
Satyajit Sahoo
e86ce7bcb7
chore: update Reactiflux instructions
2021-01-14 12:45:53 +01:00
youngjuning
6c3cccf877
feat: export TransitionPreset for custom TransitionPresets ( #9173 )
2021-01-14 12:39:15 +01:00
Satyajit Sahoo
802db004ae
chore: upgrade dependencies
2021-01-08 13:59:24 +01:00
Satyajit Sahoo
69d333f6c2
fix: fix initial metrics on server
2020-12-03 02:19:54 +01:00
Satyajit Sahoo
12b893d7ca
fix: drop usage of Dimensions in favor of metrics from safe-area-context
2020-12-03 01:40:00 +01:00
Satyajit Sahoo
14ac256af3
fix: force dismiss keyboard if there was no gesture
...
closes #9078
2020-11-21 05:28:25 +01:00
Satyajit Sahoo
c85f2ff47a
feat: add an option to specify default options for the navigator
2020-11-17 20:25:49 +01:00
Satyajit Sahoo
6f326cf0c5
feat: add a slide animation for modals on Android
2020-11-16 18:09:58 +01:00
Satyajit Sahoo
ddf27bf41a
refactor: don't use deprecated APIs from react-native-safe-area-context
...
BREAKING CHANGE: We now require newer versions of safe area context library.
2020-11-13 08:06:14 +01:00
Jesse Katsumata
8773dcb80f
chore: replace community maskedview ( #9058 )
...
replaced `@react-native-community/masked-view` with `@react-native-masked-view/masked-view` due to namespace change.
2020-11-12 06:21:11 +01:00
Satyajit Sahoo
21a11543bf
fix: add missing helper types in descriptors
2020-11-12 03:54:41 +01:00
Satyajit Sahoo
4cad132c2c
refactor: simplify props for stack and drawer headers
...
BREAKING CHANGE: Previously, the stack header accepted scene and previous scene which contained things such as descriptor, navigation prop, progress etc. The commit simplifies them to pass `route`, `navigation`, `options` and `progress` directly to the header. Similaryly, the `previous` argument now contains `options`, `route` and `progress`.
2020-11-12 02:47:51 +01:00
Satyajit Sahoo
8a63f193bf
feat: use modal presentation style for modals on iOS by default
2020-11-12 01:39:42 +01:00