Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-countdown-circle-timer

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-countdown-circle-timer

Lightweight React Native countdown timer component with color and progress animation based on SVG

  • 2.3.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by16.26%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Countdown Circle Timer

npm Codecov npm GitHub Workflow Status npm bundle size

React Native countdown timer component for iOS and Android in a circle shape with color and progress animation.

  • Single react-native's Animated loop to animate color and progress
  • Support iOS and Android
  • Transition between colors during the countdown
  • Linear gradient support(currently only by Android)
  • Fully customizable content in the center of the circle
  • a11y support
  • Built-in and ready-to-use TypeScript type definitions.

Installation

yarn add react-native-countdown-circle-timer

or

npm install react-native-countdown-circle-timer

Prerequisites

This component has a peer dependency on react-native-svg to draw the countdown circle. react-native-svg has to be installed and linked into your project

Demo

Check the Expo Snack demo to get started

Basic usage

import { CountdownCircleTimer } from 'react-native-countdown-circle-timer'

const UrgeWithPleasureComponent = () => (
  <CountdownCircleTimer
    isPlaying
    duration={10}
    colors={[
      ['#004777', 0.4],
      ['#F7B801', 0.4],
      ['#A30000', 0.2],
    ]}
  >
    {({ remainingTime, animatedColor }) => (
      <Animated.Text style={{ color: animatedColor }}>
        {remainingTime}
      </Animated.Text>
    )}
  </CountdownCircleTimer>
)

Props

Refer to the list of props

Road Map

  • Add liner gradient support for iOS
  • Support useNativeDriver

Keywords

FAQs

Package last updated on 24 Jul 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc