{"id":17145519,"url":"https://github.com/heyman333/react-native-animated-numbers","last_synced_at":"2025-05-14T20:02:21.373Z","repository":{"id":38858441,"uuid":"270018865","full_name":"heyman333/react-native-animated-numbers","owner":"heyman333","description":"🎰  Library showing animation of number changes in react-native","archived":false,"fork":false,"pushed_at":"2024-11-15T04:57:52.000Z","size":2011,"stargazers_count":432,"open_issues_count":35,"forks_count":45,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T14:04:22.863Z","etag":null,"topics":["animated","animation","numbers","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heyman333.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-06T15:16:09.000Z","updated_at":"2025-04-02T15:23:39.000Z","dependencies_parsed_at":"2024-02-21T10:28:56.839Z","dependency_job_id":"e2b8f433-0419-4426-b054-144d0c78be36","html_url":"https://github.com/heyman333/react-native-animated-numbers","commit_stats":{"total_commits":46,"total_committers":9,"mean_commits":5.111111111111111,"dds":"0.21739130434782605","last_synced_commit":"e0e2aa46a5676c888d9c84b18306f9cc5d29b7d9"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-animated-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-animated-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-animated-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyman333%2Freact-native-animated-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyman333","download_url":"https://codeload.github.com/heyman333/react-native-animated-numbers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248748726,"owners_count":21155674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animated","animation","numbers","react-native"],"created_at":"2024-10-14T21:06:00.888Z","updated_at":"2025-04-13T16:47:08.836Z","avatar_url":"https://github.com/heyman333.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-animated-numbers\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg)](https://github.com/heyman333/react-native-animated-numbers/pulls)\n[![Platform](https://img.shields.io/badge/platform-react--native-lightgrey.svg)](http://facebook.github.io/react-native/)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/heyman333/react-native-animated-numbers/blob/master/LICENSE)\n\n\u003ca href=\"https://www.npmjs.com/package/react-native-animated-numbers\"\u003e\n\u003cimg alt=\"npm version\" src=\"http://img.shields.io/npm/v/react-native-animated-numbers.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/react-native-animated-numbers\"\u003e\n\u003cimg src=\"http://img.shields.io/npm/dm/react-native-animated-numbers.svg?style=flat-square\"\u003e\n\u003c/a\u003e\n\nLibrary showing animation of number changes in react-native\n\nIf you want web version in react.js [download react-animated-numbers](https://github.com/heyman333/react-animated-numbers)\n\n## install\n\n```shell\nyarn add react-native-animated-numbers\n```\n\n## props\n\n|                   |    type    |       default       | description                            |\n| :---------------: | :--------: | :-----------------: | -------------------------------------- |\n|  animateToNumber  |   number   |        none         | Number to be animated                  |\n|     fontStyle     | TextStyle? |        none         | Style of number text                   |\n| animationDuration |  number?   |      1400(ms)       | The speed at which the animation works |\n|   includeComma    |  boolean?  |        false        | Whether the number contains commas     |\n|      easing       |  Easing?   | Easing.elastic(1.2) | React Native Easing API in Animated    |\n|  containerStyle   | ViewStyle? |        none         | Style of container view                |\n|    fontVariant    |  string[]  |  ['tabular-nums']   | Font variants for a font               |\n| locale | Intl.LocalesArgument | 'en-US' | the locale to be used to split the number when includeComma is true |\n\n## example\n\n```js\nimport React from 'react';\nimport { SafeAreaView, Button } from 'react-native';\nimport AnimatedNumbers from 'react-native-animated-numbers';\n\nconst App = () =\u003e {\n  const [animateToNumber, setAnimateToNumber] = React.useState(7979);\n\n  const increase = () =\u003e {\n    setAnimateToNumber(animateToNumber + 1999);\n  };\n\n  return (\n    \u003cSafeAreaView\n      style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}\n    \u003e\n      \u003cAnimatedNumbers\n        includeComma\n        animateToNumber={animateToNumber}\n        fontStyle={{ fontSize: 50, fontWeight: 'bold' }}\n      /\u003e\n      \u003cButton title=\"increase\" onPress={increase} /\u003e\n    \u003c/SafeAreaView\u003e\n  );\n};\nexport default App;\n```\n\n## screenshot\n\n \u003cimg src=\"images/ios.gif\" /\u003e\n \u003cimg src=\"images/android.gif\" width=\"270\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyman333%2Freact-native-animated-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyman333%2Freact-native-animated-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyman333%2Freact-native-animated-numbers/lists"}