@hero-design/rn 8.98.0-alpha.0 → 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
@@ -20917,6 +20917,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
20917
20917
  });
20918
20918
  };
20919
20919
 
20920
+ var isAndroid8 = Platform.OS === 'android' && (Platform.Version === 26 || Platform.Version === 27);
20920
20921
  var TabScreen = index$b(View)({
20921
20922
  flex: 1
20922
20923
  });
@@ -20961,7 +20962,7 @@ var HeaderTabItemWrapper = index$b(View)(function (_ref5) {
20961
20962
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
20962
20963
  position: 'relative',
20963
20964
  justifyContent: 'center'
20964
- }, Platform.OS === 'android' && Platform.Version !== 26 && Platform.Version !== 27 && {
20965
+ }, !isAndroid8 && {
20965
20966
  alignItems: 'center'
20966
20967
  });
20967
20968
  });
package/lib/index.js CHANGED
@@ -20946,6 +20946,7 @@ 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);
20949
20950
  var TabScreen = index$b(reactNative.View)({
20950
20951
  flex: 1
20951
20952
  });
@@ -20990,7 +20991,7 @@ var HeaderTabItemWrapper = index$b(reactNative.View)(function (_ref5) {
20990
20991
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
20991
20992
  position: 'relative',
20992
20993
  justifyContent: 'center'
20993
- }, reactNative.Platform.OS === 'android' && reactNative.Platform.Version !== 26 && reactNative.Platform.Version !== 27 && {
20994
+ }, !isAndroid8 && {
20994
20995
  alignItems: 'center'
20995
20996
  });
20996
20997
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.98.0-alpha.0",
3
+ "version": "8.98.0-alpha.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,6 +1,10 @@
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
+
4
8
  const TabScreen = styled(View)({
5
9
  flex: 1,
6
10
  });
@@ -43,11 +47,9 @@ const HeaderTabItemWrapper = styled(View)(({ theme }) => ({
43
47
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
44
48
  position: 'relative',
45
49
  justifyContent: 'center',
46
- ...(Platform.OS === 'android' &&
47
- Platform.Version !== 26 &&
48
- Platform.Version !== 27 && {
49
- alignItems: 'center',
50
- }),
50
+ ...(!isAndroid8 && {
51
+ alignItems: 'center',
52
+ }),
51
53
  }));
52
54
 
53
55
  const HeaderTabItemIndicator = styled(Animated.View)(({ theme }) => ({