Basic installation
Installing lottie-react-native
follows a similar process as any other npm library, taking into account that it's a library that depends on native libraries written in Swift and Java. Taking this into account, developers can always read about the installation process in the GitHub repository URL: https://github.com/lottie-react-native/lottie-react-native.
When installing lottie-react-native
, developers should know that, because of the way it is built, the iOS native library for Lottie should also be installed to enable lottie-react-native
to render Lottie animations in iOS apps.
Let's take a look at the steps we need to follow in order to complete a successful installation.
Using npm
Follow these steps to install the lottie-react-native
library using npm:
- Navigate to our terminal in the React Native project root folder. Once we are there, we should run the following command:
npm i --save lottie-react-native
This command will follow...