r/reactnative • • 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. :)

227 Upvotes

30 comments sorted by

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

u/anaste97 Jun 19 '20

Where do you learn about Animation?

1

u/ppictures Jun 19 '20

React Native Docs

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

u/daavidaviid Jun 18 '20

I’ve been working with it for the past 2 weeks and I’m loving it

3

u/JuriJurka Jun 18 '20

do you use animated or reanimated

4

u/ppictures Jun 18 '20

I used the regular Animated API and built my library on top of it.

2

u/Shomr Jun 18 '20

Well done!

2

u/ppictures Jun 18 '20

Thank you!

2

u/reservationsjazz Jun 18 '20

Wrestled with Animated API all last week. Wish this was out before that mess haha.

2

u/ppictures Jun 18 '20

Haha best of luck mate

2

u/vertigo_101 Jun 18 '20

Very well done

2

u/ppictures Jun 18 '20

Thank you!

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

u/ppictures Jun 18 '20

Haha will keep in mind 😂

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

u/ptmdevncoder Jun 18 '20

This is soooo cool

1

u/ppictures Jun 19 '20

Thank you :)

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

u/angel-sinjen Jun 19 '20

Thanks so much