An open API service indexing awesome lists of open source software.

https://github.com/gquittet/react-native-piecountdown

A pie count down component for React Native
https://github.com/gquittet/react-native-piecountdown

component count countdown down pie plugin react-native

Last synced: 4 months ago
JSON representation

A pie count down component for React Native

Awesome Lists containing this project

README

        

# React Native Pie Count Down

![Screencast](./assets/screencast.gif)

## Example

```typescript
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 (



);
}
}

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

```

## Events

### onPieCountDownUpdate: Object

Return the following object.

```typescript
{
time: number,
toString: string
}
```

### onPieCountDownFinished: void

Return nothing.

```typescript
```

## Todo

- [x] Add animations to the circle
- [ ] Allow color configuration
- [ ] Allow more tweaks

## Author

Guillaume Quittet