react-native-animated-numbers
Version:
Module that shows number changes through simple animation
16 lines • 764 B
TypeScript
import React from 'react';
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
import { Animated } from 'react-native';
export interface AnimatedNumberProps {
animateToNumber: number;
fontStyle?: StyleProp<TextStyle>;
animationDuration?: number;
includeComma?: boolean;
easing?: Animated.TimingAnimationConfig['easing'];
containerStyle?: StyleProp<ViewStyle>;
fontVariant?: TextStyle['fontVariant'];
locale?: Intl.LocalesArgument;
}
declare const AnimatedNumber: ({ animateToNumber: givenAnimateToNumber, fontStyle, animationDuration, includeComma, easing, containerStyle, fontVariant, locale, }: AnimatedNumberProps) => React.JSX.Element;
export default AnimatedNumber;
//# sourceMappingURL=AnimatedNumber.d.ts.map