2.0.18 • Published 2 years ago
yd-react-native-countdown v2.0.18
React Native Countdown
React Native Countdown is a component that displays countdown for React Native.
Installation
npm install yd-react-native-countdown
Getting started with React Native Countdown
Here is an example of a basic app using React Native Countdown:
import Countdown from "yd-react-native-countdown";
// Countdown 50 seconds to 2 seconds
<Countdown from={50000} to={2000} style={{ backgroundColor: "#ffffff88" }} isRunning={isRunning} />;
React Native Countdown Props
Props | Description | isRequire | default |
---|---|---|---|
from | number | No | 10000 |
to | number | No | 0 |
isRunning | boolean | No | false |
format | string | No | "{i}:{s}" |
style | ViewStyle | No | {} |
styleText | TextStyle | No | {} |
callback | () => void | No | () => {} |
beatEffectAtTheEnd | boolean | No | false |
lastSecondsWithEffect | number | No | 10000 |
format
Character | Description | Example returned values |
---|---|---|
{s} | Seconds with zeros to the left | 00 through 59 |
{i} | Minutes with zeros to the left | 00 to 59 |
{h} | Hours with zeros to the left | 01 through 12 |
{g} | Hours without zeros to the left | 1 through 12 |
2.0.1
2 years ago
2.0.0
2 years ago
2.0.15
2 years ago
2.0.16
2 years ago
2.0.13
2 years ago
2.0.14
2 years ago
2.0.11
2 years ago
2.0.12
2 years ago
2.0.17
2 years ago
2.0.18
2 years ago
1.3.27
2 years ago
1.3.26
2 years ago
1.3.25
2 years ago
1.3.24
2 years ago
1.3.23
2 years ago
1.3.22
2 years ago
1.3.21
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.9
2 years ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.9
2 years ago
1.1.8
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago