@hero-design/rn 8.45.1 → 8.45.2-test-only.0
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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/es/index.js +4 -1
- package/lib/index.js +4 -1
- package/package.json +1 -1
- package/src/components/PageControl/index.tsx +5 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -3,6 +3,6 @@ $ rollup -c
|
|
|
3
3
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
5
5
|
[1m[33m(!) 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`.[39m[22m
|
|
6
|
-
[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/
|
|
7
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [
|
|
6
|
+
[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/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[39m[22m
|
|
7
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m28.2s[22m[39m
|
|
8
8
|
$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.45.2-test-only.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2406](https://github.com/Thinkei/hero-design/pull/2406) [`f6a11c2a9`](https://github.com/Thinkei/hero-design/commit/f6a11c2a97133154a527f607f3af59a5a7e30b3c) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [PageControl] Fix animation not working
|
|
8
|
+
|
|
3
9
|
## 8.45.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -11947,7 +11947,10 @@ var PageControl = function PageControl(_ref) {
|
|
|
11947
11947
|
var theme = useTheme();
|
|
11948
11948
|
var animatedValue = React.useRef(new Animated.Value(currentPage)).current;
|
|
11949
11949
|
React.useEffect(function () {
|
|
11950
|
-
|
|
11950
|
+
Animated.spring(animatedValue, {
|
|
11951
|
+
toValue: currentPage,
|
|
11952
|
+
useNativeDriver: Platform.OS !== 'web'
|
|
11953
|
+
}).start();
|
|
11951
11954
|
}, [currentPage]);
|
|
11952
11955
|
return /*#__PURE__*/React.createElement(StyledPageControl$2, {
|
|
11953
11956
|
testID: testID,
|
package/lib/index.js
CHANGED
|
@@ -11977,7 +11977,10 @@ var PageControl = function PageControl(_ref) {
|
|
|
11977
11977
|
var theme = useTheme();
|
|
11978
11978
|
var animatedValue = React__default["default"].useRef(new reactNative.Animated.Value(currentPage)).current;
|
|
11979
11979
|
React__default["default"].useEffect(function () {
|
|
11980
|
-
|
|
11980
|
+
reactNative.Animated.spring(animatedValue, {
|
|
11981
|
+
toValue: currentPage,
|
|
11982
|
+
useNativeDriver: reactNative.Platform.OS !== 'web'
|
|
11983
|
+
}).start();
|
|
11981
11984
|
}, [currentPage]);
|
|
11982
11985
|
return /*#__PURE__*/React__default["default"].createElement(StyledPageControl$2, {
|
|
11983
11986
|
testID: testID,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { Animated, Platform, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
5
|
StyledPageControlAnimatedView,
|
|
@@ -35,7 +35,10 @@ const PageControl = ({
|
|
|
35
35
|
const animatedValue = React.useRef(new Animated.Value(currentPage)).current;
|
|
36
36
|
|
|
37
37
|
React.useEffect(() => {
|
|
38
|
-
|
|
38
|
+
Animated.spring(animatedValue, {
|
|
39
|
+
toValue: currentPage,
|
|
40
|
+
useNativeDriver: Platform.OS !== 'web',
|
|
41
|
+
}).start();
|
|
39
42
|
}, [currentPage]);
|
|
40
43
|
|
|
41
44
|
return (
|