react-native-countdown-fix

Fix react-native-countdown-text and add function afterEnd

Usage no npm install needed!

<script type="module">
  import reactNativeCountdownFix from 'https://cdn.skypack.dev/react-native-countdown-fix';
</script>

README

react-native-countdown-fix

A React Native component that converts a timestamp of a future date to a readable countdown clock, based on a format.

Installation

npm install --save react-native-countdown-fix

Usage

import React, { Component } from 'react';
import { Countdown } from 'react-native-countdown-fix';

export default class App extends Component {
    render() {
        return <Countdown finishTime={1543622400} />
    }
}

Properties

Name Type Default Description
format string {d}:{h}:{m}:{s} The format that will be applied to the milliseconds
finishTime number REQUIRED The future date timestamp
textStyle Text Style The style that will be applied to the countdown text
afterEnd callBack function after end countdown