Socket
Book a DemoInstallSign in
Socket

react-native-piecountdown

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-piecountdown

A pie count down component for React Native

latest
Source
npmnpm
Version
0.1.8
Version published
Maintainers
1
Created
Source

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

Keywords

pie

FAQs

Package last updated on 20 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts