0.0.11 • Published 6 years ago

react-native-lottie-rating v0.0.11

Weekly downloads
33
License
-
Repository
github
Last release
6 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

6 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago