@motify/core
Advanced tools
Comparing version
@@ -6,2 +6,30 @@ # Change Log | ||
# [0.18.0](https://github.com/nandorojo/moti/compare/v0.18.1...v0.18.0) (2022-05-11) | ||
**Note:** Version bump only for package @motify/core | ||
## [0.18.1](https://github.com/nandorojo/moti/compare/v0.18.0...v0.18.1) (2022-05-11) | ||
### Bug Fixes | ||
* partially fix [#185](https://github.com/nandorojo/moti/issues/185) ([a4d7d18](https://github.com/nandorojo/moti/commit/a4d7d18010fe0b285c5150ac9d32191ce23590e5)) | ||
* remove warnings ([afa1114](https://github.com/nandorojo/moti/commit/afa1114ac6ea3f8949199cb109b8606b8d16ecc0)) | ||
**Note:** Version bump only for package @motify/core | ||
## [0.17.1](https://github.com/nandorojo/moti/compare/v0.17.0...v0.17.1) (2021-12-15) | ||
@@ -8,0 +36,0 @@ |
@@ -271,3 +271,9 @@ "use strict"; | ||
for (const key in exitStyle || {}) { | ||
exitingStyleProps[key] = true; | ||
const disabledExitStyles = { | ||
position: true | ||
}; | ||
if (!disabledExitStyles[key]) { | ||
exitingStyleProps[key] = true; | ||
} | ||
} // allow shared values as transitions | ||
@@ -309,3 +315,4 @@ | ||
if (onDidAnimate) { | ||
(0, _reactNativeReanimated.runOnJS)(reanimatedOnDidAnimated)(key, completed, recentValue, { | ||
(0, _reactNativeReanimated.runOnJS)(reanimatedOnDidAnimated)( // @ts-expect-error key is a string | ||
key, completed, recentValue, { | ||
attemptedValue: value | ||
@@ -312,0 +319,0 @@ }); |
@@ -261,3 +261,9 @@ import { PresenceContext, usePresence } from 'framer-motion'; | ||
for (const key in exitStyle || {}) { | ||
exitingStyleProps[key] = true; | ||
const disabledExitStyles = { | ||
position: true | ||
}; | ||
if (!disabledExitStyles[key]) { | ||
exitingStyleProps[key] = true; | ||
} | ||
} // allow shared values as transitions | ||
@@ -299,3 +305,4 @@ | ||
if (onDidAnimate) { | ||
runOnJS(reanimatedOnDidAnimated)(key, completed, recentValue, { | ||
runOnJS(reanimatedOnDidAnimated)( // @ts-expect-error key is a string | ||
key, completed, recentValue, { | ||
attemptedValue: value | ||
@@ -302,0 +309,0 @@ }); |
{ | ||
"name": "@motify/core", | ||
"version": "0.18.0-alpha.18+16350f8", | ||
"version": "0.18.0", | ||
"private": false, | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
"sideEffects": false, | ||
"gitHead": "16350f820f5fdda645b5b96a75f6050897e1e38c", | ||
"gitHead": "881be888512d6cc6b8746a706601c74a2a55ecbf", | ||
"scripts": { | ||
@@ -38,0 +38,0 @@ "prepare": "bob build", |
@@ -314,3 +314,8 @@ import { PresenceContext, usePresence } from 'framer-motion' | ||
for (const key in exitStyle || {}) { | ||
exitingStyleProps[key] = true | ||
const disabledExitStyles = { | ||
position: true, | ||
} | ||
if (!disabledExitStyles[key]) { | ||
exitingStyleProps[key] = true | ||
} | ||
} | ||
@@ -353,5 +358,11 @@ | ||
if (onDidAnimate) { | ||
runOnJS(reanimatedOnDidAnimated)(key as any, completed, recentValue, { | ||
attemptedValue: value, | ||
}) | ||
runOnJS(reanimatedOnDidAnimated)( | ||
// @ts-expect-error key is a string | ||
key, | ||
completed, | ||
recentValue, | ||
{ | ||
attemptedValue: value, | ||
} | ||
) | ||
} | ||
@@ -358,0 +369,0 @@ if (isExiting) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
253207
0.75%3475
0.67%0
-100%