@hero-design/rn 8.98.0-alpha.0 → 8.98.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js
CHANGED
|
@@ -9055,7 +9055,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
9055
9055
|
}));
|
|
9056
9056
|
};
|
|
9057
9057
|
|
|
9058
|
-
var isIOS = Platform.OS === 'ios';
|
|
9058
|
+
var isIOS$1 = Platform.OS === 'ios';
|
|
9059
9059
|
var isAndroid = Platform.OS === 'android';
|
|
9060
9060
|
function pick(keys, obj) {
|
|
9061
9061
|
return keys.filter(function (key) {
|
|
@@ -9789,7 +9789,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
9789
9789
|
removeClippedSubviews:
|
|
9790
9790
|
// On iOS, set removeClippedSubviews to true only when not focused
|
|
9791
9791
|
// This is an workaround for a bug where the clipped view never re-appears.
|
|
9792
|
-
isIOS ? selectedTabKey !== key : true,
|
|
9792
|
+
isIOS$1 ? selectedTabKey !== key : true,
|
|
9793
9793
|
themeVisibility: active
|
|
9794
9794
|
}, component);
|
|
9795
9795
|
})), /*#__PURE__*/React__default.createElement(BottomBarWrapper, {
|
|
@@ -20917,6 +20917,8 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20917
20917
|
});
|
|
20918
20918
|
};
|
|
20919
20919
|
|
|
20920
|
+
var isAndroid8 = Platform.OS === 'android' && (Platform.Version === 26 || Platform.Version === 27);
|
|
20921
|
+
var isIOS = Platform.OS === 'ios';
|
|
20920
20922
|
var TabScreen = index$b(View)({
|
|
20921
20923
|
flex: 1
|
|
20922
20924
|
});
|
|
@@ -20961,7 +20963,7 @@ var HeaderTabItemWrapper = index$b(View)(function (_ref5) {
|
|
|
20961
20963
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
20962
20964
|
position: 'relative',
|
|
20963
20965
|
justifyContent: 'center'
|
|
20964
|
-
},
|
|
20966
|
+
}, (!isAndroid8 || isIOS) && {
|
|
20965
20967
|
alignItems: 'center'
|
|
20966
20968
|
});
|
|
20967
20969
|
});
|
package/lib/index.js
CHANGED
|
@@ -9084,7 +9084,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
9084
9084
|
}));
|
|
9085
9085
|
};
|
|
9086
9086
|
|
|
9087
|
-
var isIOS = reactNative.Platform.OS === 'ios';
|
|
9087
|
+
var isIOS$1 = reactNative.Platform.OS === 'ios';
|
|
9088
9088
|
var isAndroid = reactNative.Platform.OS === 'android';
|
|
9089
9089
|
function pick(keys, obj) {
|
|
9090
9090
|
return keys.filter(function (key) {
|
|
@@ -9818,7 +9818,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
9818
9818
|
removeClippedSubviews:
|
|
9819
9819
|
// On iOS, set removeClippedSubviews to true only when not focused
|
|
9820
9820
|
// This is an workaround for a bug where the clipped view never re-appears.
|
|
9821
|
-
isIOS ? selectedTabKey !== key : true,
|
|
9821
|
+
isIOS$1 ? selectedTabKey !== key : true,
|
|
9822
9822
|
themeVisibility: active
|
|
9823
9823
|
}, component);
|
|
9824
9824
|
})), /*#__PURE__*/React__namespace.default.createElement(BottomBarWrapper, {
|
|
@@ -20946,6 +20946,8 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20946
20946
|
});
|
|
20947
20947
|
};
|
|
20948
20948
|
|
|
20949
|
+
var isAndroid8 = reactNative.Platform.OS === 'android' && (reactNative.Platform.Version === 26 || reactNative.Platform.Version === 27);
|
|
20950
|
+
var isIOS = reactNative.Platform.OS === 'ios';
|
|
20949
20951
|
var TabScreen = index$b(reactNative.View)({
|
|
20950
20952
|
flex: 1
|
|
20951
20953
|
});
|
|
@@ -20990,7 +20992,7 @@ var HeaderTabItemWrapper = index$b(reactNative.View)(function (_ref5) {
|
|
|
20990
20992
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
20991
20993
|
position: 'relative',
|
|
20992
20994
|
justifyContent: 'center'
|
|
20993
|
-
},
|
|
20995
|
+
}, (!isAndroid8 || isIOS) && {
|
|
20994
20996
|
alignItems: 'center'
|
|
20995
20997
|
});
|
|
20996
20998
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { Animated, Platform, StyleSheet, View } from 'react-native';
|
|
2
2
|
import styled from '@emotion/native';
|
|
3
3
|
|
|
4
|
+
const isAndroid8 =
|
|
5
|
+
Platform.OS === 'android' &&
|
|
6
|
+
(Platform.Version === 26 || Platform.Version === 27);
|
|
7
|
+
|
|
8
|
+
const isIOS = Platform.OS === 'ios';
|
|
9
|
+
|
|
4
10
|
const TabScreen = styled(View)({
|
|
5
11
|
flex: 1,
|
|
6
12
|
});
|
|
@@ -43,11 +49,9 @@ const HeaderTabItemWrapper = styled(View)(({ theme }) => ({
|
|
|
43
49
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
44
50
|
position: 'relative',
|
|
45
51
|
justifyContent: 'center',
|
|
46
|
-
...(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
alignItems: 'center',
|
|
50
|
-
}),
|
|
52
|
+
...((!isAndroid8 || isIOS) && {
|
|
53
|
+
alignItems: 'center',
|
|
54
|
+
}),
|
|
51
55
|
}));
|
|
52
56
|
|
|
53
57
|
const HeaderTabItemIndicator = styled(Animated.View)(({ theme }) => ({
|