cawfree / react-native-lottie-files-picker

A React Native List that supports the selection of beautiful Lottie Animations sourced by Lottie Files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-lottie-files-picker

A React Native List that supports the selection of beautiful Lottie Animations sourced by Lottie Files.

react-native-lottie-files-picker

๐Ÿš€ Installing

Using npm:

npm install --save @cawfree/react-native-lottie-files-picker

Using yarn:

yarn add @cawfree/react-native-lottie-files-picker

๐Ÿ‘ About

We have file browsers, camera roll viewers and emoji pickers. Why not let your users jazz up their content using Lottie Files, too? Animations are presented to the user via an <InfiniteList/>, from which the user can pick to browser from one of the recent, popular or featured animations using crawl-lottie-files.

โœ๏ธ Example

import React from 'react';
import { Alert } from 'react-native';
import LottieFilesPicker from '@cawfree/react-native-lottie-files-picker'

class AnimationScreen extends React.Component {
  render() {
    return (
      <LottieFilesPicker
        onSelect={({ path }) => {
          Alert.alert(`Looks like you picked ${path}. Nice choice.`);
        }}
      />
    );
  }
}

export default AnimationScreen;

Yup.

Special Thanks

Huge thank you to reallynattu and the team at LottieFiles for being super cool with open-source stuff. All credit for the embedded artwork and animation hosting goes utterly to them.

License

MIT

Buy @cawfree a coffee

About

A React Native List that supports the selection of beautiful Lottie Animations sourced by Lottie Files.


Languages

Language:JavaScript 76.8%Language:Objective-C 12.3%Language:Python 6.2%Language:Java 4.7%