@hero-design/rn 8.64.1 → 8.64.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.
@@ -2,4 +2,4 @@
2
2
  src/index.ts → lib/index.js, es/index.js...
3
3
  (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
4
4
  (!) 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
5
- created lib/index.js, es/index.js in 1m 4.4s
5
+ created lib/index.js, es/index.js in 1m 1.3s
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @hero-design/rn
2
2
 
3
+ ## 8.64.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3257](https://github.com/Thinkei/hero-design/pull/3257) [`051edd758`](https://github.com/Thinkei/hero-design/commit/051edd7588c6c08b6ade6d9880c607d532fde839) Thanks [@ttkien](https://github.com/ttkien)! - [Spinner] Improve animation
8
+
9
+ - Updated dependencies []:
10
+ - @hero-design/react-native-month-year-picker@8.42.10
11
+
3
12
  ## 8.64.1
4
13
 
5
14
  ### Patch Changes
package/es/index.js CHANGED
@@ -16026,7 +16026,7 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
16026
16026
  var size = _ref.size,
16027
16027
  intent = _ref.intent;
16028
16028
  var rotateAnimation = useRef(new Animated.Value(0));
16029
- useEffect(function () {
16029
+ useLayoutEffect(function () {
16030
16030
  var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
16031
16031
  toValue: 1,
16032
16032
  duration: 1200,
package/lib/index.js CHANGED
@@ -16056,7 +16056,7 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
16056
16056
  var size = _ref.size,
16057
16057
  intent = _ref.intent;
16058
16058
  var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
16059
- React.useEffect(function () {
16059
+ React.useLayoutEffect(function () {
16060
16060
  var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
16061
16061
  toValue: 1,
16062
16062
  duration: 1200,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.64.1",
3
+ "version": "8.64.2",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -50,7 +50,7 @@
50
50
  "@eslint/compat": "^1.1.1",
51
51
  "@eslint/eslintrc": "^3.1.0",
52
52
  "@eslint/js": "^9.8.0",
53
- "@hero-design/eslint-plugin": "9.0.1",
53
+ "@hero-design/eslint-plugin": "9.1.0",
54
54
  "@hero-design/react-native-month-year-picker": "^8.42.10",
55
55
  "@react-native-community/datetimepicker": "7.6.1",
56
56
  "@react-native-community/slider": "^4.5.1",
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useRef } from 'react';
1
+ import React, { useLayoutEffect, useRef } from 'react';
2
2
  import { Animated, Easing, Platform, StyleSheet } from 'react-native';
3
3
 
4
4
  import { StyledSpinnerDot, StyledSpinnerRow } from './StyledSpinner';
@@ -16,7 +16,7 @@ const AnimatedSpinner = ({
16
16
  }) => {
17
17
  const rotateAnimation = useRef<Animated.Value>(new Animated.Value(0));
18
18
 
19
- useEffect(() => {
19
+ useLayoutEffect(() => {
20
20
  const animation = Animated.loop(
21
21
  Animated.timing(rotateAnimation.current, {
22
22
  toValue: 1,