{"id":13630459,"url":"https://github.com/watadarkstar/react-native-typing-animation","last_synced_at":"2025-04-13T07:50:51.577Z","repository":{"id":33618416,"uuid":"160000316","full_name":"watadarkstar/react-native-typing-animation","owner":"watadarkstar","description":"💬 A typing animation for your React Native chat app based on simple trigonometry to create better loaders.","archived":false,"fork":false,"pushed_at":"2023-01-04T07:40:35.000Z","size":1939,"stargazers_count":286,"open_issues_count":53,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-14T10:17:41.440Z","etag":null,"topics":["animation","chat","component","react-native"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-typing-animation","language":"JavaScript","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/watadarkstar.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}},"created_at":"2018-12-02T00:37:12.000Z","updated_at":"2024-09-20T15:00:02.000Z","dependencies_parsed_at":"2023-01-15T01:45:50.887Z","dependency_job_id":null,"html_url":"https://github.com/watadarkstar/react-native-typing-animation","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watadarkstar%2Freact-native-typing-animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watadarkstar%2Freact-native-typing-animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watadarkstar%2Freact-native-typing-animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watadarkstar%2Freact-native-typing-animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watadarkstar","download_url":"https://codeload.github.com/watadarkstar/react-native-typing-animation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"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":["animation","chat","component","react-native"],"created_at":"2024-08-01T22:01:43.845Z","updated_at":"2025-04-13T07:50:51.550Z","avatar_url":"https://github.com/watadarkstar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/3059371/49334754-3c9dfe00-f5ab-11e8-8885-0192552d12a1.gif\" alt=\"example\" height=\"150\"/\u003e\n\u003c/p\u003e\n\u003ch3 align=\"center\"\u003e\n  💬 React Native Typing Animation\n\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  A typing animation for your React Native chat app\u003cbr/\u003e\n  based on \u003ca href=\"https://uxdesign.cc/how-you-can-use-simple-trigonometry-to-create-better-loaders-32a573577eb4\"\u003esimple trigonometry\u003c/a\u003e to create better loaders.\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/react-native-typing-animation\"\u003e\n    \u003cimg alt=\"npm version\" src=\"https://badge.fury.io/js/react-native-typing-animation.svg\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://circleci.com/gh/watadarkstar/react-native-typing-animation\"\u003e\u003cimg src=\"https://circleci.com/gh/watadarkstar/react-native-typing-animation.svg?style=shield\" alt=\"build\"\u003e\u003c/a\u003e\n  \u003ca title='License' href=\"https://github.com/watadarkstar/react-native-typing-animation/blob/master/LICENSE\" height=\"18\"\u003e\n    \u003cimg src='https://img.shields.io/badge/license-MIT-blue.svg' /\u003e\n  \u003c/a\u003e\n  \u003ca title='Tweet' href=\"https://twitter.com/intent/tweet?text=Check%20out%20this%20awesome%20React%20Native%20typing%20animation%20made%20with%20simple%20trigonometry\u0026url=https://github.com/watadarkstar/react-native-typing-animation\u0026via=icookandcode\u0026hashtags=react,reactnative,opensource,github,ux\" height=\"18\"\u003e\n    \u003cimg src='https://img.shields.io/twitter/url/http/shields.io.svg?style=social' /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n- Smooth movement\n- Customizable\n- No dependencies\n- Fast, lightweight and no images\n- Uses `requestAnimationFrame`\n- Works with React Native Web\n\n## Installation\n\n- Using [npm](https://www.npmjs.com/#getting-started): `npm install react-native-typing-animation --save`\n- Using [Yarn](https://yarnpkg.com/): `yarn add react-native-typing-animation`\n\n## Example\n\n```jsx\nimport React from \"react\";\nimport { TypingAnimation } from \"react-native-typing-animation\";\n\nclass Example extends React.Component {\n  render() {\n    return \u003cTypingAnimation /\u003e;\n  }\n}\n```\n\n## Advanced Example\n\n```jsx\nimport React from \"react\";\nimport { TypingAnimation } from \"react-native-typing-animation\";\n\nclass Example extends React.Component {\n  render() {\n    return (\n      \u003cTypingAnimation\n        dotColor=\"black\"\n        dotMargin={3}\n        dotAmplitude={3}\n        dotSpeed={0.15}\n        dotRadius={2.5}\n        dotX={12}\n        dotY={6}\n      /\u003e\n    );\n  }\n}\n```\n\n## Props\n\n- **`style`** _(Object)_ - Container styles; default is `{}`\n- **`dotColor`** _(String)_ - Dot color; default is `#000` (black)\n- **`dotStyles`** _(Object)_ - Dot styles; default is `{}`\n- **`dotRadius`** _(Integer)_ - Dot radius; default is `2.5`\n- **`dotMargin`** _(Integer)_ - Dot margin, the space between dots; default is `3`\n- **`dotAmplitude`** _(Integer)_ - Dot amplitude; default is `3`\n- **`dotSpeed`** _(Integer)_ - Dot speed, the speed of the whole animation view; default is `0.15`\n- **`dotY`** _(Integer)_ - Dot y, the starting y coordinate; default is `6`\n- **`dotX`** _(Integer)_ - Dot x, the x coordinate of the center dot; default is `12`\n- **`show`** _(Boolean)_ - Visibility, whether the whole animation view is displayed or not; default is `true`\n\n## React Native Web\n\nThe library works with React Native Web. You can see a working example [here](https://example-rn-web.adriancaarolli.now.sh/) and the source code is available [here](https://github.com/watadarkstar/react-native-typing-animation/tree/master/example-rn-web). If you are using create-react-app it might be worth copying the library source files into your app instead of installing it as a dependency to avoid react-native alias issues. See the `/example-rn-web` directory for what I mean.\n\n## License\n\n- [MIT](LICENSE)\n\n## Author\n\nFeel free to ask me questions on Twitter [@icookandcode](https://www.twitter.com/icookandcode)!\n\n## Credits\n\nWork is based on the amazing article [\"How you can use simple Trigonometry to create better loaders\"](https://uxdesign.cc/how-you-can-use-simple-trigonometry-to-create-better-loaders-32a573577eb4) by Nash Vail\n\n## Contributors\n\n- [Dennis Murage](https://github.com/murageden)\n\nSubmit a PR to contribute :)\n\n## Roadmap\n\n- Move from `requestAnimationFrame` to `Animated` with `useNativeDriver` (PRs welcome)\n- Integrate with Gifted Chat\n- Unit tests (PRs welcome)\n\n## Release\n\nWe use `release-it`, to release do the following:\n\n```\nyarn run release:dry\nyarn run release\n```\n\n## Changelog\n\n- Allow animation speed to be configurable\n- Allow visibility of the view to be configurable [#22](https://github.com/watadarkstar/react-native-typing-animation/issues/22)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatadarkstar%2Freact-native-typing-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatadarkstar%2Freact-native-typing-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatadarkstar%2Freact-native-typing-animation/lists"}