@hero-design/rn 8.98.0 → 8.98.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.
@@ -1,4 +1,4 @@
1
- (node:3005) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
1
+ (node:3022) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
2
2
  (Use `node --trace-warnings ...` to show where the warning was created)
3
3
  
4
4
  src/index.ts → lib/index.js, es/index.js...
@@ -10,9 +10,9 @@
10
10
     ~~~~~~~~~~~~~~~~~~~
11
11
  
12
12
  (!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.
13
- created lib/index.js, es/index.js in 56.1s
13
+ created lib/index.js, es/index.js in 55.7s
14
14
  
15
15
  /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/work/hero-design/hero-design/packages/rn/src/locales/types.ts → ., ....
16
16
  (!) Generated empty chunks
17
17
  "locales/types" and "locales/types"
18
- created ., . in 22.9s
18
+ created ., . in 23.1s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.98.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3805](https://github.com/Thinkei/hero-design/pull/3805) [`c0e81efe2716701816fa439485ee1cb20cb593ca`](https://github.com/Thinkei/hero-design/commit/c0e81efe2716701816fa439485ee1cb20cb593ca) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Tabs.Scroll] Fix alignment issue on Android 8
8
+
3
9
  ## 8.98.0
4
10
 
5
11
  ### Minor Changes
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
  });
@@ -20956,13 +20957,14 @@ var HeaderTabItemOutline = index$b(Animated.View)(function (_ref4) {
20956
20957
  });
20957
20958
  var HeaderTabItemWrapper = index$b(View)(function (_ref5) {
20958
20959
  var theme = _ref5.theme;
20959
- return {
20960
+ return _objectSpread2({
20960
20961
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
20961
20962
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
20962
20963
  position: 'relative',
20963
- justifyContent: 'center',
20964
+ justifyContent: 'center'
20965
+ }, !isAndroid8 && {
20964
20966
  alignItems: 'center'
20965
- };
20967
+ });
20966
20968
  });
20967
20969
  var HeaderTabItemIndicator = index$b(Animated.View)(function (_ref6) {
20968
20970
  var theme = _ref6.theme;
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
  });
@@ -20985,13 +20986,14 @@ var HeaderTabItemOutline = index$b(reactNative.Animated.View)(function (_ref4) {
20985
20986
  });
20986
20987
  var HeaderTabItemWrapper = index$b(reactNative.View)(function (_ref5) {
20987
20988
  var theme = _ref5.theme;
20988
- return {
20989
+ return _objectSpread2({
20989
20990
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
20990
20991
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
20991
20992
  position: 'relative',
20992
- justifyContent: 'center',
20993
+ justifyContent: 'center'
20994
+ }, !isAndroid8 && {
20993
20995
  alignItems: 'center'
20994
- };
20996
+ });
20995
20997
  });
20996
20998
  var HeaderTabItemIndicator = index$b(reactNative.Animated.View)(function (_ref6) {
20997
20999
  var theme = _ref6.theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.98.0",
3
+ "version": "8.98.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,6 +1,10 @@
1
- import { Animated, StyleSheet, View } from 'react-native';
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,7 +47,9 @@ const HeaderTabItemWrapper = styled(View)(({ theme }) => ({
43
47
  paddingVertical: theme.__hd__.tabs.space.outlineVerticalPadding,
44
48
  position: 'relative',
45
49
  justifyContent: 'center',
46
- alignItems: 'center',
50
+ ...(!isAndroid8 && {
51
+ alignItems: 'center',
52
+ }),
47
53
  }));
48
54
 
49
55
  const HeaderTabItemIndicator = styled(Animated.View)(({ theme }) => ({