Chapter 8: Installing lottie-react-native
Before using lottie-react-native
, we need to install the library into our React Native project as a node module so we can import it inside the code base of our app. To perform this installation, we have two different options:
- npm
- Yarn
Both tools will result in the same output (lottie-react-native
) and its dependencies will be installed inside the node_modules
folder inside our React Native project folder. Using one tool or another will be up to each developer and should not influence the resulting product in any way.
The topics we will cover in this chapter are as follows:
- Basic installation (using npm or Yarn)
- Dependencies of
lottie-react-native
- iOS requirements when installing
lottie-react-native
- Android requirements
- Installing previous versions of
lottie-react-native