Closed FluffyDiscord closed 11 months ago
can you put the values inline instead of in the transform array?
can you put the values inline instead of in the transform array?
Same error when doing this:
<MotiView
animate={{
translateX: [20, 0, -12, 14],
translateY: [-15, 10, -2, 9],
}}
transition={{
loop: true,
type: "timing",
duration: 20,
}}/>
I get
maybe a reanimated 3-specific error, should ideally have an easy fix
Experiencing same error with Reanimated 3 and expo 49, stepAnimation is not a function
if someone can spin up an example app i’m sure it’s somewhat of an easy fix, i’d review a PR
Great, In "submission to app store mode" right now but will try to get one done after!
I think this is related to #282 tried the following patch and got the issue resolved. There is also an open PR with this fix
diff --git a/node_modules/moti/src/core/use-motify.ts b/node_modules/moti/src/core/use-motify.ts
index 0b0680c..a95c5ae 100644
--- a/node_modules/moti/src/core/use-motify.ts
+++ b/node_modules/moti/src/core/use-motify.ts
@@ -244,7 +244,7 @@ const getSequenceArray = (
const sequence: any[] = []
- sequenceArray.forEach((step) => {
+ for (const step of sequenceArray) {
const shouldPush =
typeof step === 'object'
? step && step?.value != null && step?.value !== false
@@ -302,7 +302,7 @@ const getSequenceArray = (
sequence.push(sequenceValue)
}
}
- })
+ }
return sequence
}
is this on hermes or JSC?
fixed in 0.25.4
@nandorojo Hermes
I got same error in:
When i turn off hermes, error was gone. Please kindly check it, thanks @nandorojo.
Is there an existing issue for this?
Current Behavior
Cannot animate using sequences
Expected Behavior
Animates as described in docs
Steps To Reproduce
Versions
Screenshots
No response
Reproduction
ss