@freakycoder/react-native-countdown
Version:
Moment based easy to use Countdown for React Native
15 lines (14 loc) • 439 B
TypeScript
import * as React from "react";
import { TextStyle, StyleProp, ViewStyle } from "react-native";
import moment from "moment";
interface CountdownProps {
end: moment.Moment;
start: moment.Moment;
format?: string;
defaultCountdown?: string;
style?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
onCountdownOver?: () => void;
}
declare const Countdown: React.FC<CountdownProps>;
export default Countdown;