{"id":42662541,"url":"https://github.com/seymoe/react-native-noticebar","last_synced_at":"2026-01-29T09:53:08.694Z","repository":{"id":57338719,"uuid":"146687927","full_name":"seymoe/react-native-noticebar","owner":"seymoe","description":"NoticeBar component for React Native, works at iOS and Android.","archived":false,"fork":false,"pushed_at":"2024-02-24T15:49:24.000Z","size":271,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-09T14:44:02.630Z","etag":null,"topics":["notice","noticebar","react-native","react-native-noticebar"],"latest_commit_sha":null,"homepage":null,"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/seymoe.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-08-30T02:58:09.000Z","updated_at":"2024-02-24T15:49:27.000Z","dependencies_parsed_at":"2022-09-07T10:12:37.002Z","dependency_job_id":null,"html_url":"https://github.com/seymoe/react-native-noticebar","commit_stats":null,"previous_names":["ximolang/react-native-noticebar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seymoe/react-native-noticebar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seymoe%2Freact-native-noticebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seymoe%2Freact-native-noticebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seymoe%2Freact-native-noticebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seymoe%2Freact-native-noticebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seymoe","download_url":"https://codeload.github.com/seymoe/react-native-noticebar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seymoe%2Freact-native-noticebar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["notice","noticebar","react-native","react-native-noticebar"],"created_at":"2026-01-29T09:53:07.948Z","updated_at":"2026-01-29T09:53:08.672Z","avatar_url":"https://github.com/seymoe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-noticebar\n\nNoticeBar component for React Native, works at iOS and Android.\n\n\u003cimg style=\"display:block;margin-bottom: 15px\" width=\"375\" src=\"./docs/demo.png\"/\u003e\n\n# Install\n\n```\nnpm install react-native-noticebar --save\n```\n\n# Usage\n\n```\nimport NoticeBar from 'react-native-noticebar'\n\nclass Demo extends React.Component {\n  constructor(props) {\n    super(props)\n    this.state = {\n      noticeList: [\n        {\n          id: 1,\n          title: 'This is Notice Bar!'\n        },\n        {\n          id: 2,\n          title: 'Notice Bar coming!!'\n        }\n      ]\n    }\n  }\n\n  // noticebar change event\n  handleChange = (index) =\u003e {\n    console.log(`Current index is ${index}.` )\n  }\n\n  // noticebar press event\n  handlePress = (item) =\u003e {\n    console.log(item)\n  }\n\n  // render item\n  renderBarItem = (item, index) =\u003e {\n    return (\n      \u003cView\u003e\n        \u003cText numberOfLines={1}\u003e{item.title}\u003c/Text\u003e\n      \u003c/View\u003e\n    )\n  }\n\n  render() {\n    return (\n      \u003cView\u003e\n        \u003cText\u003eNoticeBar Demo\u003c/Text\u003e\n        \u003cNoticeBar\n          data={ noticeList }\n          renderBarItem={ this.renderBarItem }\n          scrollHeight={ 40 }\n          scrollBarStyle={ styles.barStyle }\n          delay={ 3000 }\n          duration={ 500 }\n          easing='linear'\n          onChange={ this.handleChange }\n          onPress={ this.handlePress }\u003e\u003c/NoticeBar\u003e\n      \u003c/View\u003e\n    )\n  }\n}\n```\n\n# Props\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003eProp name\u003c/th\u003e\n        \u003cth\u003eDescription\u003c/th\u003e\n        \u003cth\u003eType\u003c/th\u003e\n        \u003cth\u003eDefault\u003c/th\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edata\u003c/td\u003e\n        \u003ctd\u003eYou know, the data\u003c/td\u003e\n        \u003ctd\u003ePropTypes.string or PropTypes.element\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003escrollHeight\u003c/td\u003e\n        \u003ctd\u003eHeight of the single Bar\u003c/td\u003e\n        \u003ctd\u003ePropTypes.number\u003c/td\u003e\n        \u003ctd\u003e36\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003erenderBarItem\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n        \u003ctd\u003ePropTypes.func\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003escrollBarStyle\u003c/td\u003e\n        \u003ctd\u003eBar wrap's style\u003c/td\u003e\n        \u003ctd\u003ePropTypes.object\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003edelay\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n        \u003ctd\u003ePropTypes.number\u003c/td\u003e\n        \u003ctd\u003e3000\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eduration\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n        \u003ctd\u003ePropTypes.number\u003c/td\u003e\n        \u003ctd\u003e500\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eeasing\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n        \u003ctd\u003ePropTypes.string, One of the ['step0','step1','linear','ease','quad','cubic','sin','circle','exp',\n'bounce']\u003c/td\u003e\n        \u003ctd\u003elinear\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eonChange\u003c/td\u003e\n        \u003ctd\u003eCallback when noticebar has changed\u003c/td\u003e\n        \u003ctd\u003ePropTypes.func\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003eonPress\u003c/td\u003e\n        \u003ctd\u003ePress function\u003c/td\u003e\n        \u003ctd\u003ePropTypes.func\u003c/td\u003e\n        \u003ctd\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseymoe%2Freact-native-noticebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseymoe%2Freact-native-noticebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseymoe%2Freact-native-noticebar/lists"}