{"id":22430002,"url":"https://github.com/rxreactnative/react-native-rxemitter","last_synced_at":"2026-04-10T06:32:47.422Z","repository":{"id":57339670,"uuid":"229199729","full_name":"RXReactNative/react-native-rxemitter","owner":"RXReactNative","description":"emit: support React-Native / Vue / Nuxt.  (广播、通知)","archived":false,"fork":false,"pushed_at":"2021-08-12T02:31:42.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T11:03:33.596Z","etag":null,"topics":["nuxt","react","react-native","react-native-web","vue"],"latest_commit_sha":null,"homepage":"","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/RXReactNative.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":"2019-12-20T05:56:56.000Z","updated_at":"2023-12-18T08:17:07.000Z","dependencies_parsed_at":"2022-09-04T14:23:17.912Z","dependency_job_id":null,"html_url":"https://github.com/RXReactNative/react-native-rxemitter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxemitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxemitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxemitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RXReactNative%2Freact-native-rxemitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RXReactNative","download_url":"https://codeload.github.com/RXReactNative/react-native-rxemitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245798358,"owners_count":20673902,"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":["nuxt","react","react-native","react-native-web","vue"],"created_at":"2024-12-05T21:06:45.790Z","updated_at":"2025-12-30T19:54:05.981Z","avatar_url":"https://github.com/RXReactNative.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-rxemitter\n\nReact-Native / Vue / Nuxt \u003cbr\u003e\n: `Broadcast notification` - `广播`\n\n\u003cbr\u003e\n\n```sh\n    npm install react-native-rxemitter --save-dev\n\n    # or\n    yarn add react-native-rxemitter --dev\n```\n\n## Usage\n\n```js\n//- - - -\n// add listener (React -\u003e componentDidMount)\n//              (Vue/Nuxt -\u003e created)\nRXEmitter.addListener(this, 'gotoHome', ()=\u003e{\n  // ...\n});\n\n// remove listener (React -\u003e componentWillUnmount)\n//                 (Vue/Nuxt -\u003e destroyed)\nRXEmitter.remove(this, 'gotoHome');\n\n//- - - -\n// send eitter (anywhere)\nRXEmitter.emit('gotoHome');\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreactnative%2Freact-native-rxemitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxreactnative%2Freact-native-rxemitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxreactnative%2Freact-native-rxemitter/lists"}