File tree Expand file tree Collapse file tree 7 files changed +1084
-1813
lines changed
Expand file tree Collapse file tree 7 files changed +1084
-1813
lines changed Original file line number Diff line number Diff line change 33All notable changes to this project will be documented in this file.
44See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
55
6+ ## [ 0.27.5] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.5 ) (2024-02-20)
7+
8+ ** Note:** Version bump only for package moti
9+
10+
11+
12+
13+
14+ ## [ 0.27.5] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.5 ) (2024-02-20)
15+
16+ ** Note:** Version bump only for package moti
17+
18+
19+
20+
21+
22+ ## [ 0.27.4] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.4 ) (2024-02-20)
23+
24+ ** Note:** Version bump only for package moti
25+
26+
27+
28+
29+
30+ ## [ 0.27.4] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.4 ) (2024-02-20)
31+
32+ ** Note:** Version bump only for package moti
33+
34+
35+
36+
37+
638## [ 0.27.4] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.4 ) (2024-02-20)
739
840** Note:** Version bump only for package moti
Original file line number Diff line number Diff line change 55 ],
66 "npmClient" : " npm" ,
77 "useWorkspaces" : true ,
8- "version" : " 0.27.4 " ,
8+ "version" : " 0.27.5 " ,
99 "command" : {
1010 "publish" : {
1111 "allowBranch" : " master" ,
Original file line number Diff line number Diff line change 33All notable changes to this project will be documented in this file.
44See [ Conventional Commits] ( https://conventionalcommits.org ) for commit guidelines.
55
6+ ## [ 0.27.5] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.5 ) (2024-02-20)
7+
8+ ** Note:** Version bump only for package moti
9+
10+
11+
12+
13+
14+ ## [ 0.27.5] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.5 ) (2024-02-20)
15+
16+ ** Note:** Version bump only for package moti
17+
18+
19+
20+
21+
22+ ## [ 0.27.4] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.4 ) (2024-02-20)
23+
24+ ** Note:** Version bump only for package moti
25+
26+
27+
28+
29+
30+ ## [ 0.27.4] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.4 ) (2024-02-20)
31+
32+ ** Note:** Version bump only for package moti
33+
34+
35+
36+
37+
638## [ 0.27.4] ( https://github.com/nandorojo/moti/compare/v0.27.1...v0.27.4 ) (2024-02-20)
739
840** Note:** Version bump only for package moti
Original file line number Diff line number Diff line change 11{
22 "name" : " moti" ,
3- "private" : false ,
43 "version" : " 0.27.4" ,
54 "keywords" : [
65 " react-native" ,
5049 },
5150 "devDependencies" : {
5251 "expo-linear-gradient" : " ^10.0.3" ,
53- "expo-module-scripts" : " ^2.0.0 " ,
52+ "expo-module-scripts" : " ^3.4.1 " ,
5453 "react-native-linear-gradient" : " ^2.6.2" ,
5554 "react-native-reanimated" : " 3.5.4" ,
5655 "typescript" : " ^5.2.0"
Original file line number Diff line number Diff line change @@ -553,6 +553,14 @@ export function useMotify<Animate>({
553553 delayMs = transition ?. [ transformKey ] ?. delay
554554 }
555555
556+ const {
557+ animation,
558+ config,
559+ shouldRepeat,
560+ repeatCount,
561+ repeatReverse,
562+ } = animationConfig ( transformKey , transition )
563+
556564 let finalValue = animation ( transformValue , config , callback )
557565 if ( shouldRepeat ) {
558566 finalValue = withRepeat ( finalValue , repeatCount , repeatReverse )
@@ -609,8 +617,6 @@ export function useMotify<Animate>({
609617 }
610618 } else if ( isTransform ( key ) ) {
611619 final [ 'transform' ] = final [ 'transform' ] || [ ]
612- // const transformKey = Object.keys(transformProp)[0]
613- // const transformValue = transformProp[transformKey]
614620
615621 if ( transition ?. [ key ] ?. delay != null ) {
616622 delayMs = transition ?. [ key ] ?. delay
You can’t perform that action at this time.
0 commit comments