{"id":16239582,"url":"https://github.com/mirinzhang/react-native-inwindow","last_synced_at":"2026-04-29T15:04:08.536Z","repository":{"id":57337765,"uuid":"153785248","full_name":"mirinzhang/react-native-inwindow","owner":"mirinzhang","description":"Detects if a element is inside a ScrollView or a ListView and reports back","archived":false,"fork":false,"pushed_at":"2018-12-16T07:00:02.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-14T17:56:59.037Z","etag":null,"topics":["react-native","react-native-component"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/mirinzhang.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":"2018-10-19T13:14:51.000Z","updated_at":"2020-03-11T09:51:54.000Z","dependencies_parsed_at":"2022-09-15T15:11:45.112Z","dependency_job_id":null,"html_url":"https://github.com/mirinzhang/react-native-inwindow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mirinzhang/react-native-inwindow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirinzhang%2Freact-native-inwindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirinzhang%2Freact-native-inwindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirinzhang%2Freact-native-inwindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirinzhang%2Freact-native-inwindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirinzhang","download_url":"https://codeload.github.com/mirinzhang/react-native-inwindow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirinzhang%2Freact-native-inwindow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32430803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"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":["react-native","react-native-component"],"created_at":"2024-10-10T13:44:10.088Z","updated_at":"2026-04-29T15:04:08.520Z","avatar_url":"https://github.com/mirinzhang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-inwindow\n\nDetects if a element is inside a ScrollView or a ListView and reports back\n\n### Install\n\n```bash\nnpm i -S react-native-inwindow\n```\n\n### Usage\n\n```javascript\nimport { ScrollView, View, Text } from 'react-native';\nimport InWindow from 'react-native-inwindow';\n\nonViewChange = (isVisible) =\u003e {\n    if(isVisible) {\n        console.log('component is inside window');\n    }\n}\n\nrender() {\n    return (\n        \u003cScrollView style={{flex: 1}}\u003e\n            \u003cInWindow\n                duration={100} // Intervals that check if the element is in the window. default is 100\n                active={true} // Check if the element is in the window. defautt is true\n                onChange={this.onViewChange}\u003e\n                \u003cView style={{flex: 1, height: 40, borderColot: '#f0f', borderColor: 1}}\u003e\n                    \u003cText\u003ereact-native-inwindow\u003c/Text\u003e\n                \u003c/View\u003e\n            \u003c/InWindow\u003e\n        \u003c/ScrollView\u003e\n    );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirinzhang%2Freact-native-inwindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirinzhang%2Freact-native-inwindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirinzhang%2Freact-native-inwindow/lists"}