{"id":15562941,"url":"https://github.com/mateioprea/react-native-observable-hooks-focus-subscription-plugin","last_synced_at":"2025-03-29T05:11:32.580Z","repository":{"id":227831483,"uuid":"772498034","full_name":"mateioprea/react-native-observable-hooks-focus-subscription-plugin","owner":"mateioprea","description":"Focus Effect observable hook for react native","archived":false,"fork":false,"pushed_at":"2024-03-15T11:22:20.000Z","size":1461,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T12:19:11.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mateioprea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-15T10:04:28.000Z","updated_at":"2024-03-15T10:05:06.000Z","dependencies_parsed_at":"2024-03-15T11:29:46.067Z","dependency_job_id":"a5651dbf-1edd-4feb-85a7-8e686d321a1f","html_url":"https://github.com/mateioprea/react-native-observable-hooks-focus-subscription-plugin","commit_stats":null,"previous_names":["mateioprea/react-native-observable-hooks-focus-subscription-plugin"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateioprea%2Freact-native-observable-hooks-focus-subscription-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateioprea%2Freact-native-observable-hooks-focus-subscription-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateioprea%2Freact-native-observable-hooks-focus-subscription-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mateioprea%2Freact-native-observable-hooks-focus-subscription-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mateioprea","download_url":"https://codeload.github.com/mateioprea/react-native-observable-hooks-focus-subscription-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140588,"owners_count":20729802,"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":[],"created_at":"2024-10-02T16:16:50.811Z","updated_at":"2025-03-29T05:11:32.557Z","avatar_url":"https://github.com/mateioprea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-observable-hooks-focus-subscription-plugin\n\nFocus Effect observable hook for react native\n\nInspired from [Observable hooks](https://observable-hooks.js.org/) project\n\n## Installation\n\n```sh\nyarn add react-native-observable-hooks-focus-subscription-plugin @react-navigation/native observable-hooks rxjs\n```\n\n## Usage\n\n```javascript\n\nimport { useFocusSubscription } from 'react-native-observable-hooks-focus-subscription-plugin';\n\nconst MyScreen = () =\u003e {\n\n  const count$ = interval(1000)\n  const observer = {\n    next: (value: number) =\u003e {\n      console.log(value)\n    },\n  }\n\n  useFocusSubscription(count$, observer)\n\n  return (\n    \u003cView\u003e\n      \u003cText\u003eMy Screen\u003c/Text\u003e\n    \u003c/View\u003e\n  )\n}\n```\n\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateioprea%2Freact-native-observable-hooks-focus-subscription-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateioprea%2Freact-native-observable-hooks-focus-subscription-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateioprea%2Freact-native-observable-hooks-focus-subscription-plugin/lists"}