Need help using reanimated library to animate absolute position value. #5166
Unanswered
RProduction
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am a newbie when I using this library. I need help to apply animated Top value to Animated.view.
This is my code
`
<Animated.View
style={[
{
position: 'absolute',
...style
},
panStyle
]}
<Box {...someProps}>{children}
</Animated.View>
`
style is dynamic style according to condition. The value is left or right position.
PanStyle is animatedValue of top.
Box is gluestack ui is Box component.
The style work but it won't move. If I move the animationStyle inside static style, it will collapse but the animation is working.
I am using gluestack ui, if there is a way to implement it as animated component. I already tried it, but error show up.
Anyone know why this happen?
Beta Was this translation helpful? Give feedback.
All reactions