MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactnative/comments/b2zonp/the_login_animation_i_implemented_using_react/ej4pptk/?context=3
r/reactnative • u/alexandr1us • Mar 19 '19
38 comments sorted by
View all comments
1
Hey u/alexandr1us this is awesome work!
I've implemented this in an app im fiddling with and it works like a charm!
Quick question, say I wanna use the Input fields (TextFields) only and not the button + button Animation, what can I remove from the code?
I am not very good at animating etc. so I am having a hard time working my head around it.
Cheers
1 u/alexandr1us Mar 22 '19 So you just want to have textfields fade away?You only need these lines then:Animated.timing(this.state.inputAnimation, {toValue: 0,duration: 300,delay: 100})const translateY = this.state.inputAnimation.interpolate({inputRange: [0, 1],outputRange: [0, 60]}) 1 u/Afrood Mar 22 '19 Perfect! Thanks a lot man. If you have any other animations that you want to share please do! amazing work. 1 u/alexandr1us Mar 22 '19 Yes It's WIP right now
So you just want to have textfields fade away?
You only need these lines then:
Animated.timing(this.state.inputAnimation, {toValue: 0,duration: 300,delay: 100})
Animated.timing(this.state.inputAnimation, {
toValue: 0,
duration: 300,
delay: 100
})
const translateY = this.state.inputAnimation.interpolate({inputRange: [0, 1],outputRange: [0, 60]})
const translateY = this.state.inputAnimation.interpolate({
inputRange: [0, 1],
outputRange: [0, 60]
1 u/Afrood Mar 22 '19 Perfect! Thanks a lot man. If you have any other animations that you want to share please do! amazing work. 1 u/alexandr1us Mar 22 '19 Yes It's WIP right now
Perfect! Thanks a lot man. If you have any other animations that you want to share please do! amazing work.
1 u/alexandr1us Mar 22 '19 Yes It's WIP right now
Yes It's WIP right now
1
u/Afrood Mar 22 '19
Hey u/alexandr1us this is awesome work!
I've implemented this in an app im fiddling with and it works like a charm!
Quick question, say I wanna use the Input fields (TextFields) only and not the button + button Animation, what can I remove from the code?
I am not very good at animating etc. so I am having a hard time working my head around it.
Cheers