{"id":48204941,"url":"https://github.com/logicwind/react-native-fold-detection","last_synced_at":"2026-04-04T18:35:18.350Z","repository":{"id":206167411,"uuid":"715938690","full_name":"logicwind/react-native-fold-detection","owner":"logicwind","description":"react-native library to detect fold device and also provide information related to fold status","archived":false,"fork":false,"pushed_at":"2025-08-07T16:35:51.000Z","size":1844,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-11T01:37:10.257Z","etag":null,"topics":["device-posture","dual-screen","fold-detection","foldable","foldable-device","foldable-devices","foldable-phone","foldable-support","multi-window","react-native","react-native-fold","screen-posture"],"latest_commit_sha":null,"homepage":"","language":"Java","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/logicwind.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-08T06:18:06.000Z","updated_at":"2025-09-06T19:22:09.000Z","dependencies_parsed_at":"2023-11-08T10:42:26.845Z","dependency_job_id":"15824bd3-1fa9-4a9e-813e-0a412b259afd","html_url":"https://github.com/logicwind/react-native-fold-detection","commit_stats":null,"previous_names":["logicwind/react-native-fold-detection"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/logicwind/react-native-fold-detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicwind%2Freact-native-fold-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicwind%2Freact-native-fold-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicwind%2Freact-native-fold-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicwind%2Freact-native-fold-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicwind","download_url":"https://codeload.github.com/logicwind/react-native-fold-detection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicwind%2Freact-native-fold-detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31409216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"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":["device-posture","dual-screen","fold-detection","foldable","foldable-device","foldable-devices","foldable-phone","foldable-support","multi-window","react-native","react-native-fold","screen-posture"],"created_at":"2026-04-04T18:35:15.966Z","updated_at":"2026-04-04T18:35:18.329Z","avatar_url":"https://github.com/logicwind.png","language":"Java","readme":"# react-native-fold-detection\n\nThe purpose of the package is to provide details regarding the Android folding capability.\n\n## Installation\n\n```sh\nnpm install @logicwind/react-native-fold-detection\n```\n\n\n## iOS\n\nYou'll need to disable auto-linking for this package.\nTo do so, create react-native.config.js in the root of your project with this content:\n```js\nmodule.exports = {\n  dependencies: {\n    \"react-native-fold-detection\": {\n      platforms: {\n        ios: null, // this will disable autolinking for this package on iOS\n      },\n    },\n  },\n};\n```\n\n## In App.js Wrap your app with FoldingFeatureProvider\n\n```js\nimport * as React from \"react\";\n\nimport { FoldingFeatureProvider } from \"@logicwind/react-native-fold-detection\";\nimport SampleScreen from \"./SampleScreen\";\n\nexport default function App() {\n  return (\n    \u003cFoldingFeatureProvider\u003e\n      \u003cSampleScreen /\u003e\n    \u003c/FoldingFeatureProvider\u003e\n  );\n}\n```\n\n## In other screens\n\n```js\nimport { useFoldingFeature } from \"@logicwind/react-native-fold-detection\";\n\nconst { layoutInfo, isTableTop, isBook, isFlat } = useFoldingFeature();\n```\n\n\n### useFoldingFeature Props\n\n| Prop       | Type       | Default | Description                                                                                                              |\n| ---------- | ---------- | ------- | ------------------------------------------------------------------------------------------------------------------------ |\n| layoutInfo | LayoutInfo |         | Folding Feature from [android doc](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature) |\n| isTableTop | boolean    | false   | HALF_OPENED \u0026 HORIZONTAL                                                                                                 |\n| isBook     | boolean    | false   | HALF_OPENED \u0026 VERTICAL                                                                                                   |\n| isFlat     | boolean    | true    |                                                                                                                          |\n\n## react-native-fold-detection is crafted mindfully at [Logicwind](https://www.logicwind.com?utm_source=github\u0026utm_medium=github.com-logicwind\u0026utm_campaign=react-native-fold-detection)\n\nWe are a 130+ people company developing and designing multiplatform applications using the Lean \u0026 Agile methodology. To get more information on the solutions that would suit your needs, feel free to get in touch by [email](mailto:sales@logicwind.com) or through or [contact form](https://www.logicwind.com/contact-us?utm_source=github\u0026utm_medium=github.com-logicwind\u0026utm_campaign=react-native-fold-detection)!\n\nWe will always answer you with pleasure 😁\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicwind%2Freact-native-fold-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicwind%2Freact-native-fold-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicwind%2Freact-native-fold-detection/lists"}