How to use customAnimation in javascript? #318
Unanswered
BasselTurky
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to implement
Carousel
with parallax mode and FlowcustomAnimation
.I only know Javascript, and I couldn't understand any TypeScript examples.
This is the example I am trying to use:
Parallax Flow: https://github.com/dohooo/react-native-reanimated-carousel/blob/main/exampleExpo/src/flow/index.tsx
How can I write this function in javascript?
`
const animationStyle: TAnimationStyle = React.useCallback(
(value: number) => {
'worklet';
`
And how can I import
TAnimationStyle
?Like this
import type { TAnimationStyle } from '../../../src/layouts/BaseLayout';
but in my application.Is there any similar example in Javascript to follow?
Sorry I am not an expert,
Please help out.
Thank you ^^
Beta Was this translation helpful? Give feedback.
All reactions