Giter Site home page Giter Site logo

wrathchaos / react-native-countdown Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 2.0 5.51 MB

Moment based extremely easy to use Countdown for React Native

Home Page: https://freakycoder.com

License: MIT License

JavaScript 17.65% Java 37.26% Ruby 11.79% Objective-C 11.62% TypeScript 15.06% Shell 0.87% Objective-C++ 5.75%
react-native react reactjs javascript apple mobile mobile-app mobile-app-development ios android

react-native-countdown's Introduction

React Native Countdown

Battle Tested โœ…

Moment based extremely easy to use Countdown for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Countdown

Installation

Add the dependency:

npm i @freakycoder/react-native-countdown

Peer Dependencies

IMPORTANT! You need install them
"moment": ">= 2.24.0",
"moment-duration-format": ">= 2.3.2"

Usage

Import

import moment from "moment";
import Countdown from "react-native-countdown";

Usage

All Text Component feature can be send via props OR you can use textStyle

<Countdown
  start={moment(1578240964000)}
  end={moment(1578244564000)}
  fontFamily="BurbankBigCondensed-Black" // All Text Component feature can be send via props OR you can use textStyle
  defaultCountdown=" - / - : - : -"
  format="d[d]  hh:mm:ss"
/>

Configuration - Props

Check the example for the customizable format and defaultCountdown props.

Property Type Default Description
start boolean true make the button outline
end boolean false make the button with a solid background and a shadow
textStyle boolean false make the button with a gradient background and a shadow
defaultCountdown string - : - : - default countdown format before the countdown starts
format string hh:mm:ss set your own format for the countdown

Roadmap

  • LICENSE
  • Typescript
  • Article for Medium
  • BuyMeACoffee Link/Widget

Author

FreakyCoder, [email protected]

License

React Native Countdown is available under the MIT license. See the LICENSE file for more info.

react-native-countdown's People

Contributors

dependabot[bot] avatar wrathchaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.