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
dfdba8d741
fix: disable animation by default on web for stack
2020-04-10 17:02: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
2020-04-08 12:17:31 +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
Satyajit Sahoo
b71de6cc79
fix: mark type exports for all packages
2020-04-07 11:22:47 +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
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
max
8432e5ab25
fix: dismiss keyboard on screen change for android
2020-03-30 21:50:52 +02:00
Satyajit Sahoo
4ac40b5c5d
chore: update typescript and babel
2020-03-30 21:42:58 +02:00
Andrius Janauskas
d649fbc669
fix: finish stack animation on CANCELLED event ( #7898 )
...
fixes #7897
2020-03-30 14:36:04 +02:00
Satyajit Sahoo
babb5027f9
chore: publish
...
- @react-navigation/stack@5.2.8
2020-03-27 15:01:32 +01:00
osdnk
a248c453ba
chore: publish
...
- @react-navigation/stack@5.2.7
2020-03-26 17:07:40 +01:00
Wojciech Stanisz
e097df880a
fix: add pointerEvents=box-none to overlay View ( #7871 )
2020-03-26 13:38:30 +01:00
Satyajit Sahoo
856449b200
chore: publish
...
- @react-navigation/bottom-tabs@5.2.4
- @react-navigation/compat@5.1.6
- @react-navigation/core@5.3.1
- @react-navigation/drawer@5.3.4
- @react-navigation/material-bottom-tabs@5.1.6
- @react-navigation/material-top-tabs@5.1.6
- @react-navigation/native@5.1.3
- @react-navigation/stack@5.2.6
2020-03-23 17:07:43 +01:00
Satyajit Sahoo
0f2368965c
chore: publish
...
- @react-navigation/stack@5.2.5
2020-03-23 11:42:01 +01:00
Satyajit Sahoo
61f16d3f25
fix: fix swipe gestures requiring a lot of velocity to dismiss
2020-03-23 11:40:37 +01:00
Satyajit Sahoo
853740bfaf
chore: publish
...
- @react-navigation/bottom-tabs@5.2.3
- @react-navigation/compat@5.1.5
- @react-navigation/core@5.3.0
- @react-navigation/drawer@5.3.3
- @react-navigation/material-bottom-tabs@5.1.5
- @react-navigation/material-top-tabs@5.1.5
- @react-navigation/native@5.1.2
- @react-navigation/routers@5.2.0
- @react-navigation/stack@5.2.4
2020-03-23 00:00:55 +01:00
Satyajit Sahoo
179b6312fe
chore: update prettier
2020-03-22 23:58:06 +01:00
Satyajit Sahoo
043924ca48
fix: fix swipe not dismissing card in RTL
...
closes #7841
2020-03-22 23:55:16 +01:00
Satyajit Sahoo
e030932497
chore: publish
...
- @react-navigation/stack@5.2.3
2020-03-19 21:56:36 +01:00
Tien Pham
adbfedcd58
fix: use the correct velocity value in closing animation ( #7836 )
...
In this commit f24d3a3461 we modified the `velocity` in inverted gesture, but since we also use this value in the closing animation, the change in that commit also introduced a new bug:

This PR fixes the issue by keeping the original velocity value.
2020-03-19 21:55:03 +01:00
Satyajit Sahoo
bc9b044fb3
chore: publish
...
- @react-navigation/bottom-tabs@5.2.2
- @react-navigation/compat@5.1.4
- @react-navigation/core@5.2.3
- @react-navigation/drawer@5.3.2
- @react-navigation/material-bottom-tabs@5.1.4
- @react-navigation/material-top-tabs@5.1.4
- @react-navigation/native@5.1.1
- @react-navigation/stack@5.2.2
2020-03-19 19:48:37 +01:00
Alexey Vlasenko
f24d3a3461
fix: fix closing stack using inverted gesture. ( #7824 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-03-19 19:32:29 +01:00
Satyajit Sahoo
3df65e2819
fix: initialize height and width to zero if undefined
...
closes #6789
2020-03-19 19:03:23 +01:00
Satyajit Sahoo
b1fe73097f
fix: only dismiss previously focused input on page change. closes #6918
2020-03-19 18:30:54 +01:00
Satyajit Sahoo
49f6fed6d3
fix: fix blank page if stack was inside display: none before
2020-03-19 18:11:55 +01:00
Satyajit Sahoo
b1a65fc73e
fix: don't use react-native-screens on web
...
seems `react-native-screens` doesn't handle active screens properly and shows a blank page instead on web when a number is specified in the `active` prop.
closes #7485
2020-03-19 17:28:35 +01:00
Satyajit Sahoo
358d9e9feb
chore: publish
...
- @react-navigation/bottom-tabs@5.2.1
- @react-navigation/compat@5.1.3
- @react-navigation/drawer@5.3.0
- @react-navigation/material-bottom-tabs@5.1.3
- @react-navigation/material-top-tabs@5.1.3
- @react-navigation/native@5.1.0
- @react-navigation/stack@5.2.1
2020-03-17 14:37:21 +01:00
Satyajit Sahoo
b75744abd5
chore: publish
...
- @react-navigation/bottom-tabs@5.2.0
- @react-navigation/compat@5.1.2
- @react-navigation/core@5.2.2
- @react-navigation/drawer@5.2.0
- @react-navigation/material-bottom-tabs@5.1.2
- @react-navigation/material-top-tabs@5.1.2
- @react-navigation/native@5.0.10
- @react-navigation/routers@5.1.1
- @react-navigation/stack@5.2.0
2020-03-16 14:29:25 +01:00
Satyajit Sahoo
6dbda1a0c2
chore: upgrade depenendecies
2020-03-16 14:28:10 +01:00
Michał Osadnik
70029d6c13
feat: add an option to change use a custom card overlay ( #7809 )
...
I find it sometimes useful to define overlay renderer on my own. Eg. I needed to replace the background with BlurView and with this API I find it quite easy
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-03-16 14:28:10 +01:00
Tien Pham
469d0542c7
fix: fix back gesture cancellation ( #7700 )
...
The problem here is that when we scroll back really fast, even though velocity is negative, `Math.abs(translation + velocity * gestureVelocityImpact)` will end up bigger than `distance / 2`.
I removed the `Math.abs`, I think it's not necessary. When `translation + velocity * gestureVelocityImpact` is negative, it's also < `distance / 2` and we should just close the screen.
Closes #6782
2020-03-16 12:03:16 +01:00
Vojtech Novak
0dcaea3242
fix: fix android header title font weight ( #7720 )
...
the previously used fort weight of 500 would effectively be converted to `fontWeight: bold` because of https://github.com/facebook/react-native/pull/25341
this fixes the title appearance to look as customary
2020-03-16 11:05:02 +01:00
Satyajit Sahoo
646cbfb28e
refactor: move action helper types to routers
2020-03-13 12:34:37 +01:00
Satyajit Sahoo
e071a978e6
chore: publish
...
- @react-navigation/bottom-tabs@5.1.1
- @react-navigation/compat@5.1.1
- @react-navigation/core@5.2.1
- @react-navigation/drawer@5.1.1
- @react-navigation/material-bottom-tabs@5.1.1
- @react-navigation/material-top-tabs@5.1.1
- @react-navigation/native@5.0.9
- @react-navigation/routers@5.1.0
- @react-navigation/stack@5.1.1
2020-03-03 11:58:45 +01:00
Satyajit Sahoo
296c836064
fix: ignore back button press if screen isn't focused. closes #7673
2020-03-03 11:34:38 +01:00
Satyajit Sahoo
3677818f63
chore: publish
...
- @react-navigation/bottom-tabs@5.1.0
- @react-navigation/compat@5.1.0
- @react-navigation/core@5.2.0
- @react-navigation/drawer@5.1.0
- @react-navigation/material-bottom-tabs@5.1.0
- @react-navigation/material-top-tabs@5.1.0
- @react-navigation/native@5.0.8
- @react-navigation/routers@5.0.3
- @react-navigation/stack@5.1.0
2020-02-26 13:57:42 +01:00
Satyajit Sahoo
162410843c
feat: add ability add listeners with listeners prop
...
This adds ability to listen to events from the component where the navigator is defined, even if the screen is not rendered.
```js
<Tabs.Screen
name="Chat"
component={Chat}
options={{ title: 'Chat' }}
listeners={{
tabPress: e => console.log('Tab press', e.target),
}}
/>
```
Closes #6756
2020-02-26 13:02:22 +01:00
Satyajit Sahoo
a046db536f
chore: publish
...
- @react-navigation/stack@5.0.9
2020-02-24 14:45:00 +01:00
Michał Osadnik
80a337024a
fix: enhance border radius in modals on new iPhones ( #6945 )
...
Co-authored-by: Satyajit Sahoo <satyajit.happy@gmail.com >
2020-02-24 14:44:20 +01:00
Satyajit Sahoo
c19da31240
refactor: enable screens only for last screen
...
This will avoid issues such as https://github.com/react-navigation/react-navigation/issues/6909
2020-02-24 11:37:25 +01:00
Satyajit Sahoo
85e9376302
chore: publish
...
- @react-navigation/stack@5.0.8
2020-02-21 20:09:06 +01:00
Satyajit Sahoo
a67b49477e
fix: fix transparent header on Android
2020-02-21 20:07:38 +01:00
Satyajit Sahoo
225cb298b6
chore: publish
...
- @react-navigation/bottom-tabs@5.0.7
- @react-navigation/compat@5.0.7
- @react-navigation/core@5.1.6
- @react-navigation/drawer@5.0.7
- @react-navigation/material-bottom-tabs@5.0.7
- @react-navigation/material-top-tabs@5.0.7
- @react-navigation/native@5.0.7
- @react-navigation/routers@5.0.2
- @react-navigation/stack@5.0.7
2020-02-21 19:18:56 +01:00
Satyajit Sahoo
240ce01822
fix: make sure header is visibile to accessibility tools on iOS
2020-02-21 16:30:05 +01:00
Satyajit Sahoo
c7dd3a58b1
fix: debounce back button by default in stack header
2020-02-21 15:31:50 +01:00
Satyajit Sahoo
4578849ebf
chore: publish
...
- @react-navigation/bottom-tabs@5.0.6
- @react-navigation/compat@5.0.6
- @react-navigation/core@5.1.5
- @react-navigation/drawer@5.0.6
- @react-navigation/material-bottom-tabs@5.0.6
- @react-navigation/material-top-tabs@5.0.6
- @react-navigation/native@5.0.6
- @react-navigation/stack@5.0.6
2020-02-19 23:34:10 +01:00
Satyajit Sahoo
c084517d7b
chore: add release script
2020-02-19 23:30:12 +01:00
Satyajit Sahoo
bf76075e0f
fix: add accessibilityLabel prop to back button
...
fixes #6895
2020-02-19 23:09:00 +01:00
Satyajit Sahoo
5b7bbbdfd9
chore: publish
...
- @react-navigation/bottom-tabs@5.0.5
- @react-navigation/compat@5.0.5
- @react-navigation/core@5.1.4
- @react-navigation/drawer@5.0.5
- @react-navigation/material-bottom-tabs@5.0.5
- @react-navigation/material-top-tabs@5.0.5
- @react-navigation/native-stack@5.0.5
- @react-navigation/native@5.0.5
- @react-navigation/stack@5.0.5
2020-02-15 00:18:52 +01:00