Moment based easy to use Countdown for React Native
npm install @freakycoder/react-native-countdown




!Platform - Android and iOS


src="assets/Screenshots/example.gif" />
Add the dependency:
``js`
npm i @freakycoder/react-native-countdown
###### IMPORTANT! You need install them
`js`
"moment": ">= 2.24.0",
"moment-duration-format": ">= 2.3.2"
`js`
import moment from "moment";
import Countdown from "react-native-countdown";
All Text Component feature can be send via props OR you can use textStyle
`jsx`
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"
/>
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 |
- [x] ~~LICENSE~~
- [ ] Typescript
- [ ] Article for Medium
- [ ] BuyMeACoffee Link/Widget
FreakyCoder, kurayogun@gmail.com
React Native Countdown is available under the MIT license. See the LICENSE file for more info.