diff --git a/NumberTicker.js b/NumberTicker.js
index 3030af6..3ccfcbc 100644
--- a/NumberTicker.js
+++ b/NumberTicker.js
@@ -5,15 +5,17 @@ import PropTypes from "prop-types";
const NumberTicker = ({style, textSize = 35, textStyle, number, duration}) => {
const mapToDigits = () => {
- return (number + '').split('').map((data) => {
+ const numberString = String(number);
+ return (numberString).split('').map((data, index) => {
+ const key = `${data}-${numberString.length - index}`;
if (data === '.' || data === ',') {
return (
- {data}
+ {data}
);
}
return (