Compare commits

..

4 Commits

Author SHA1 Message Date
Satyajit Sahoo
cc94cce297 chore: publish
- @react-navigation/bottom-tabs@5.11.11
2021-05-14 08:05:54 +02:00
Satyajit Sahoo
c99d127a89 fix: fix tab bar height including extra bottom inset. closes #9573 2021-05-14 08:05:34 +02:00
Satyajit Sahoo
b4c1b9767c chore: publish
- @react-navigation/stack@5.14.5
2021-05-09 06:51:06 +02:00
Michael Knoch
9fb4202597 fix: pressOpacity for ios Touchable 2021-05-09 05:41:11 +02:00
6 changed files with 26 additions and 12 deletions

View File

@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [5.11.11](https://github.com/react-navigation/react-navigation/compare/@react-navigation/bottom-tabs@5.11.10...@react-navigation/bottom-tabs@5.11.11) (2021-05-14)
### Bug Fixes
* fix tab bar height including extra bottom inset. closes [#9573](https://github.com/react-navigation/react-navigation/issues/9573) ([c99d127](https://github.com/react-navigation/react-navigation/commit/c99d127a89f422f8cb691ea2f3827ee163df6d9f))
## [5.11.10](https://github.com/react-navigation/react-navigation/compare/@react-navigation/bottom-tabs@5.11.9...@react-navigation/bottom-tabs@5.11.10) (2021-04-16)

View File

@@ -1,7 +1,7 @@
{
"name": "@react-navigation/bottom-tabs",
"description": "Bottom tab navigator following iOS design guidelines",
"version": "5.11.10",
"version": "5.11.11",
"keywords": [
"react-native-component",
"react-component",

View File

@@ -210,15 +210,7 @@ export default function BottomTabBar({
const handleLayout = (e: LayoutChangeEvent) => {
const { height, width } = e.nativeEvent.layout;
const topBorderWidth =
// @ts-ignore
StyleSheet.flatten([styles.tabBar, style])?.borderTopWidth;
onHeightChange?.(
height +
paddingBottom +
(typeof topBorderWidth === 'number' ? topBorderWidth : 0)
);
onHeightChange?.(height);
setLayout((layout) => {
if (height === layout.height && width === layout.width) {

View File

@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [5.14.5](https://github.com/react-navigation/react-navigation/compare/@react-navigation/stack@5.14.4...@react-navigation/stack@5.14.5) (2021-05-09)
### Bug Fixes
* pressOpacity for ios Touchable ([9fb4202](https://github.com/react-navigation/react-navigation/commit/9fb420259758405efa819bf6d01636f46f7f5033))
## [5.14.4](https://github.com/react-navigation/react-navigation/compare/@react-navigation/stack@5.14.3...@react-navigation/stack@5.14.4) (2021-04-04)

View File

@@ -1,7 +1,7 @@
{
"name": "@react-navigation/stack",
"description": "Stack navigator component for iOS and Android with animated transitions and gestures",
"version": "5.14.4",
"version": "5.14.5",
"keywords": [
"react-native-component",
"react-component",

View File

@@ -12,7 +12,7 @@ const useNativeDriver = Platform.OS !== 'web';
export default class TouchableItem extends React.Component<Props> {
static defaultProps = {
activeOpacity: 0.3,
pressOpacity: 0.3,
borderless: true,
enabled: true,
};