0.0.11 • Published 7 years ago

react-native-lottie-rating v0.0.11

Weekly downloads
33
License
-
Repository
github
Last release
7 years ago

react-native-lottie-rating

The animation is also available here.

Installation

yarn add lottie-react-native react-native-lottie-rating

lottie-react-native may require native linking, see package repository for more details.

Definition

type rating = {
  disabled?: boolean, // default = false
  max?: number,       // default = 5
  onRate: Function,   // default = rating => null
  size?: number,      // default = 36
  src?: any,          // default = require('./animation.json')
  value?: number      // default = 0
};

Example

import React from 'react';
import { View } from 'react-native';

import Rating from 'react-native-lottie-rating';

const Example = () => (
  <View style={{ alignItems: 'center', flex: 1, justifyContent: 'center' }}>
    <Rating onRate={rating => console.log(rating)} />
  </View>
);

export default Example;
0.0.11

7 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago