In order to provide a good user experience, we'll likely want to add some animations to direct the user's attention, to highlight specific actions, or just to add a distinctive touch to our app.
There's an initiative in progress to move all the processing from JavaScript to the native side. At the time of writing (React Native Version 0.58), we can choose to use the native driver to run all these calculations in the native world. Unfortunately, this cannot be used with all animations, particularly those related to layout, such as flexbox properties. Read more about caveats when using native animation in the documentation at http://facebook.github.io/react-native/docs/animations#caveats.
All of the recipes in this chapter use the JavaScript implementation. The React Native team has promised to use the same API when moving all of the processing to the...