r/reactnative • u/ppictures • Jun 18 '20
Complex animations with less than 15 lines of code. The Animated API can be a pain so I made this library to help make making animations a lot quicker. :)
8
u/x_OMEGA_x Jun 18 '20
Check Reanimated 2
6
u/ppictures Jun 18 '20
Yep I could have, I’m fairly new to react native and I wanted to Learn more about it and build my own library :)
1
3
u/x_OMEGA_x Jun 18 '20
Ye for sure, but for this kind of BIG library, is better to use an already spreaded one
2
3
2
2
u/reservationsjazz Jun 18 '20
Wrestled with Animated API all last week. Wish this was out before that mess haha.
2
2
3
u/daavidaviid Jun 18 '20
You should have used Reanimated
5
u/ppictures Jun 18 '20
Yep I could have, I’m fairly new to react native and I wanted to Learn more about it and build my own library :)
1
u/AlienSoldier Jun 18 '20
Looks great. But a huge pitfall with RN Animated class is the POOR performance in android so I’d try rewrite it with reanimated anyway because RN Animated isnt really usable in production. (:
1
u/ppictures Jun 18 '20
I see, this lib wasn’t made to be used in production lol, just a fun little project
3
u/AlienSoldier Jun 18 '20
Ohhh of course!!! Just a tip because its something developers usually dont know about this lib so just a heads up if you ever try to use it in prod it will break and your CTO will be mad. (talking from experience) lmao 😂
1
1
u/ConsoleLogDebugging iOS & Android Jun 18 '20
Why do you need to pod install after installing the lib? Doesn't seem like you're adding any native packages?
1
u/ppictures Jun 18 '20
When I try to run it without using pod install it gives me an error, I’m still new to RN so I assume any new module installed needs that command to work properly
1
1
u/angel-sinjen Jun 19 '20
I am first in here.
Great animation !!! :)
Can we use it on expo-cli?
1
u/ppictures Jun 19 '20
I think so, if you instal it like any other lib you should be able to, I’m sorry I’m new to this I dont know what all these terms mean 😓
1
10
u/ppictures Jun 18 '20
library npm • GitHub