@hero-design/rn 8.98.0-alpha.1 → 8.98.0-alpha.2
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
|
|
9058
|
+
var isIOS = 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
|
|
9792
|
+
isIOS ? selectedTabKey !== key : true,
|
|
9793
9793
|
themeVisibility: active
|
|
9794
9794
|
}, component);
|
|
9795
9795
|
})), /*#__PURE__*/React__default.createElement(BottomBarWrapper, {
|
|
@@ -20918,7 +20918,6 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20918
20918
|
};
|
|
20919
20919
|
|
|
20920
20920
|
var isAndroid8 = Platform.OS === 'android' && (Platform.Version === 26 || Platform.Version === 27);
|
|
20921
|
-
var isIOS = Platform.OS === 'ios';
|
|
20922
20921
|
var TabScreen = index$b(View)({
|
|
20923
20922
|
flex: 1
|
|
20924
20923
|
});
|
|
@@ -20963,7 +20962,7 @@ var HeaderTabItemWrapper = index$b(View)(function (_ref5) {
|
|
|
20963
20962
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
20964
20963
|
position: 'relative',
|
|
20965
20964
|
justifyContent: 'center'
|
|
20966
|
-
},
|
|
20965
|
+
}, !isAndroid8 && {
|
|
20967
20966
|
alignItems: 'center'
|
|
20968
20967
|
});
|
|
20969
20968
|
});
|
package/lib/index.js
CHANGED
|
@@ -9084,7 +9084,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
9084
9084
|
}));
|
|
9085
9085
|
};
|
|
9086
9086
|
|
|
9087
|
-
var isIOS
|
|
9087
|
+
var isIOS = 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
|
|
9821
|
+
isIOS ? selectedTabKey !== key : true,
|
|
9822
9822
|
themeVisibility: active
|
|
9823
9823
|
}, component);
|
|
9824
9824
|
})), /*#__PURE__*/React__namespace.default.createElement(BottomBarWrapper, {
|
|
@@ -20947,7 +20947,6 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
20947
20947
|
};
|
|
20948
20948
|
|
|
20949
20949
|
var isAndroid8 = reactNative.Platform.OS === 'android' && (reactNative.Platform.Version === 26 || reactNative.Platform.Version === 27);
|
|
20950
|
-
var isIOS = reactNative.Platform.OS === 'ios';
|
|
20951
20950
|
var TabScreen = index$b(reactNative.View)({
|
|
20952
20951
|
flex: 1
|
|
20953
20952
|
});
|
|
@@ -20992,7 +20991,7 @@ var HeaderTabItemWrapper = index$b(reactNative.View)(function (_ref5) {
|
|
|
20992
20991
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
20993
20992
|
position: 'relative',
|
|
20994
20993
|
justifyContent: 'center'
|
|
20995
|
-
},
|
|
20994
|
+
}, !isAndroid8 && {
|
|
20996
20995
|
alignItems: 'center'
|
|
20997
20996
|
});
|
|
20998
20997
|
});
|
package/package.json
CHANGED
|
@@ -5,8 +5,6 @@ const isAndroid8 =
|
|
|
5
5
|
Platform.OS === 'android' &&
|
|
6
6
|
(Platform.Version === 26 || Platform.Version === 27);
|
|
7
7
|
|
|
8
|
-
const isIOS = Platform.OS === 'ios';
|
|
9
|
-
|
|
10
8
|
const TabScreen = styled(View)({
|
|
11
9
|
flex: 1,
|
|
12
10
|
});
|
|
@@ -49,7 +47,7 @@ const HeaderTabItemWrapper = styled(View)(({ theme }) => ({
|
|
|
49
47
|
paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
|
|
50
48
|
position: 'relative',
|
|
51
49
|
justifyContent: 'center',
|
|
52
|
-
...(
|
|
50
|
+
...(!isAndroid8 && {
|
|
53
51
|
alignItems: 'center',
|
|
54
52
|
}),
|
|
55
53
|
}));
|