{"id":16283043,"url":"https://github.com/bang9/react-native-rolling-text","last_synced_at":"2025-09-08T05:33:03.824Z","repository":{"id":37886771,"uuid":"369507277","full_name":"bang9/react-native-rolling-text","owner":"bang9","description":"marquee in react-native","archived":false,"fork":false,"pushed_at":"2022-06-15T02:29:03.000Z","size":4953,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-24T12:40:04.041Z","etag":null,"topics":["banner","infinity-rolling","marquee","react-native","react-native-marquee","react-native-rolling-text","rolling","rolling-text"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bang9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-21T11:04:50.000Z","updated_at":"2022-08-29T12:37:38.000Z","dependencies_parsed_at":"2022-08-19T15:10:27.576Z","dependency_job_id":null,"html_url":"https://github.com/bang9/react-native-rolling-text","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bang9%2Freact-native-rolling-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bang9%2Freact-native-rolling-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bang9%2Freact-native-rolling-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bang9%2Freact-native-rolling-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bang9","download_url":"https://codeload.github.com/bang9/react-native-rolling-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232282913,"owners_count":18499329,"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":["banner","infinity-rolling","marquee","react-native","react-native-marquee","react-native-rolling-text","rolling","rolling-text"],"created_at":"2024-10-10T19:12:23.928Z","updated_at":"2025-01-03T02:57:56.504Z","avatar_url":"https://github.com/bang9.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cspan class=\"module\"\u003e\u003ca href=\"https://github.com/bang9/react-native-rolling-text\" title=\"View this project\"\u003e\u003cimg src=\"https://img.shields.io/badge/React Native-react--native--rolling--text-black?style=flat-square\u0026logo=react\" alt=\"RNRollingText\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\n\u003cspan class=\"npmversion\"\u003e\u003ca href=\"https://npmjs.org/package/react-native-rolling-text\" title=\"View this project on NPM\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/react-native-rolling-text.svg\" alt=\"NPM version\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\u003cspan class=\"npmdownloads\"\u003e\u003ca href=\"https://npmjs.org/package/react-native-rolling-text\" title=\"View this project on NPM\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/react-native-rolling-text.svg\" alt=\"NPM downloads\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\n# react-native-rolling-text\n\u003cspan class=\"module\"\u003e\u003ca href=\"https://snack.expo.io/@bang9/marquee\" title=\"Example\"\u003e\u003cimg src=\"https://img.shields.io/badge/Expo-test it on expo snack-black?style=flat-square\u0026logo=expo\" alt=\"RNRollingText\" /\u003e\u003c/a\u003e\u003c/span\u003e\u003cbr/\u003e\nmarquee in react-native! \u003cbr/\u003e\u003cbr/\u003e\n\n![img](screenshot/result.gif)\n\n## Installation\n\n```sh\nnpm install react-native-rolling-text\n```\n\n```sh\nyarn add react-native-rolling-text\n```\n\n## Usage\n\n- It is affected by the size of the container.\n- Don't for get add overflow style to container.\n\n```jsx\nimport RollingText from \"react-native-rolling-text\";\n\n\u003cView style={{width:150, overflow:'hidden'}}\u003e\n    \u003cRollingText\u003e\n        {\"Enter your Loooooooooooooooooooong text\"}\n    \u003c/RollingText\u003e\n\u003c/View\u003e\n```\n\n## Change Logs\n\n\n## Support Props\n\n| Prop                | Type      | Default | Description                           |\n| :------------------ | :-------- | :------ | ------------------------------------- |\n| debug?              | boolean   | false   | debugging mode                        |\n| force?              | boolean   | false   | Makes the animation work even if the text is not longer than the container |\n| containerStyle?     | ViewStyle | -       | component container style             |\n| style?              | TextStyle | -       | text style                            | \n| startDelay?         | number    | 2000    | animation delay at trigger time       |\n| delay?              | number    | 0       | animation delay at end                |\n| durationMsPerWidth? | number    | 25      | speed of animation, lower is faster   |\n\n## Example\n\n```jsx\nimport * as React from 'react';\nimport { Text, View, StyleSheet } from 'react-native';\nimport RollingText from 'react-native-rolling-text';\n\nfunction App() {\n    return (\n        \u003cView style={styles.container}\u003e\n            \u003cView style={styles.banner}\u003e\n                \u003cText style={styles.title}\u003e{'MARQUEE BANNER'}\u003c/Text\u003e\n                \u003cRollingText durationMsPerWidth={15} style={{ fontSize: 12 }}\u003e\n                    {\n                        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas vestibulum elementum ante.'\n                    }\n                \u003c/RollingText\u003e\n            \u003c/View\u003e\n        \u003c/View\u003e\n    );\n}\n\nconst styles = StyleSheet.create({\n    container: { \n        flex: 1,\n        alignItems: 'center',\n        justifyContent: 'center'\n    },\n    banner: {\n        alignItems: 'center',\n        justifyContent: 'center',\n        backgroundColor: 'orange',\n        height: 60,\n        width: '80%',\n        borderRadius: 8,\n        overflow: 'hidden',\n    },\n    title: {\n        fontWeight: 'bold',\n        fontSize: 16,\n    },\n});\n\nexport default App;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbang9%2Freact-native-rolling-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbang9%2Freact-native-rolling-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbang9%2Freact-native-rolling-text/lists"}