TutorialsCourses
Course Menu
React Native Animated for Beginners

Introduction

React Native Animation Book

If you don't care about anything just jump to the Basic Animation Examples which will eventually guide you from basic to advanced animations and allow you to experience the capabilities of React Native animations.

Check out the raw markdown here, follow along, and report issues for things you're interested in learning about. https://github.com/codedailyio/animation-book

Introduction

React Native has had a fantastic reception. There have already been a ton of great applications built using React Native. However one hugely important part of mobile applications is animations. React on the web has generally been pretty poor at dealing with animations, but there are some great people out there attempting to solve this problem. One such solution is react-motion https://github.com/chenglou/react-motion/.

However react-motion utilizes setState which if you are animating components with signifcant amounts of children will cause a lot of diffing. Christopher Chedeau then gave a talk at React Rally, which you should watch here Christopher Chedeau - Animated. Additionally follow along with the slides here https://speakerdeck.com/vjeux/react-rally-animated-react-performance-toolbox.

This was a novel technique and really shows off the flexibility of React. Currently it only works on React Native but there is a non-working port for the web.

There is already some great documentation written up on the React Native Animated library here http://facebook.github.io/react-native/docs/animated.html. It's not perfect by any means but that's what this book is here for. I'll be covering all of the APIs, basics, and other topics.

We'll also be covering LayoutAnimation which you can read up on here http://facebook.github.io/react-native/docs/layoutanimation.html.

READ THE RESOURCES

A lot of people say there aren't great resources or documentation on animations, but seriously read RESOURCES! Read code in the Animation Example. Also checkout the code in the Gratuitous Animation Examples.

For real though, why are you still here? Go read those before even bothering to read this stuff.

Hey you already blogged about this

Yeah, I might steal some examples from my blog and repurpose them, clean them up, etc. Deal with it. They are my blog posts and I'll do whatever the hell I want with them.