Skip to content

Commit 25c2a8b

Browse files
committed
remove default decay values
1 parent 13b1a2c commit 25c2a8b

File tree

8 files changed

+38
-7
lines changed

8 files changed

+38
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.27.0](https://github.com/nandorojo/moti/compare/v0.26.0...v0.27.0) (2023-10-12)
7+
8+
**Note:** Version bump only for package moti
9+
10+
11+
12+
13+
614

715

816
**Note:** Version bump only for package moti

examples/with-expo/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.27.0](https://github.com/nandorojo/moti/compare/v0.26.0...v0.27.0) (2023-10-12)
7+
8+
**Note:** Version bump only for package with-expo
9+
10+
11+
12+
13+
614

715

816
**Note:** Version bump only for package with-expo

examples/with-expo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "with-expo",
33
"description": "Example app for moti",
4-
"version": "0.26.0",
4+
"version": "0.27.0",
55
"private": true,
66
"scripts": {
77
"android": "expo run:android",

examples/with-next/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.27.0](https://github.com/nandorojo/moti/compare/v0.26.0...v0.27.0) (2023-10-12)
7+
8+
**Note:** Version bump only for package next-dripsy-example
9+
10+
11+
12+
13+
614

715

816
**Note:** Version bump only for package next-dripsy-example

examples/with-next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-dripsy-example",
3-
"version": "0.26.0",
3+
"version": "0.27.0",
44
"main": "__generated__/AppEntry.js",
55
"dependencies": {
66
"expo": "^40.0.0",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"npmClient": "npm",
77
"useWorkspaces": true,
8-
"version": "0.26.0",
8+
"version": "0.27.0",
99
"command": {
1010
"publish": {
1111
"allowBranch": "master",

packages/moti/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [0.27.0](https://github.com/nandorojo/moti/compare/v0.26.0...v0.27.0) (2023-10-12)
7+
8+
**Note:** Version bump only for package moti
9+
10+
11+
12+
13+
614

715

816
**Note:** Version bump only for package moti

packages/moti/src/core/use-motify.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,14 @@ function animationConfig<Animate>(
199199
}
200200
} else if (animationType === 'decay') {
201201
animation = withDecay
202-
config = {
203-
velocity: 2,
204-
deceleration: 2,
205-
}
202+
config = {}
206203
const configKeys: (keyof WithDecayConfig)[] = [
207204
'clamp',
208205
'velocity',
209206
'deceleration',
210207
'velocityFactor',
208+
'reduceMotion',
209+
'velocityFactor',
211210
]
212211
for (const configKey of configKeys) {
213212
const styleSpecificConfig = transition?.[key]?.[configKey]

0 commit comments

Comments
 (0)