0.1.8 • Published 5 years ago

react-native-piecountdown v0.1.8

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

React Native Pie Count Down

Screencast

Example

import React from "react";
import { StyleSheet, Text, View } from "react-native";
import { PieCountDown } from "react-native-piecountdown";

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <PieCountDown time={10}></PieCountDown>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Events

onPieCountDownUpdate: Object

Return the following object.

{
  time: number,
  toString: string
}

onPieCountDownFinished: void

Return nothing.

Todo

  • Add animations to the circle
  • Allow color configuration
  • Allow more tweaks

Author

Guillaume Quittet