react-native-animated-icons-json

1.0.9 • Public • Published

Animated Lottie React Native Component

Animated Lottie is a React Native component that allows you to easily display Lottie animations in your mobile applications.

Installation

To use this component, you need to install the following dependencies:

You can install them via npm:

npm install lottie-react-native react-native-animated-icons-json

Usage

After installing the dependencies, you can import and utilize the AnimatedLottie component in your React Native application.

import React from 'react';
import { View } from 'react-native';
import AnimatedLottie from 'react-native-animated-icons-json';

const App = () => {
  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <AnimatedLottie animationName="location" width={100} height={200} />
    </View>
  );
};

export default App;

In this example, AnimatedLottie is imported and used within a React Native component. Replace 'location' with the name of the Lottie animation you want to display. Adjust the width and height props according to your requirements.

Demo Video

For a visual demonstration on how to use the Animated Lottie React Native Component, you can watch this demo video.

Website

To access additional resources and documentation, visit the official website:

By following this guide, you can seamlessly integrate Lottie animations into your React Native applications and enhance user experience.

Package Sidebar

Install

npm i react-native-animated-icons-json

Weekly Downloads

1

Version

1.0.9

License

ISC

Unpacked Size

4.49 kB

Total Files

4

Last publish

Collaborators

  • matheshy