{"id":38951882,"url":"https://github.com/sergeymild/react-native-jsi-view-helpers","last_synced_at":"2026-01-17T16:10:22.107Z","repository":{"id":93523882,"uuid":"469359681","full_name":"sergeymild/react-native-jsi-view-helpers","owner":"sergeymild","description":"React Native Jsi view helpers for measure text and view.","archived":false,"fork":false,"pushed_at":"2025-05-18T11:41:23.000Z","size":1553,"stargazers_count":22,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T00:57:14.460Z","etag":null,"topics":["jsi","react-native","turbomodule"],"latest_commit_sha":null,"homepage":"","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/sergeymild.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":"2022-03-13T12:07:04.000Z","updated_at":"2025-05-18T11:39:57.000Z","dependencies_parsed_at":"2024-05-06T07:26:58.827Z","dependency_job_id":"e86777e4-e883-430d-838c-1b801b30ff6e","html_url":"https://github.com/sergeymild/react-native-jsi-view-helpers","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/sergeymild/react-native-jsi-view-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymild%2Freact-native-jsi-view-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymild%2Freact-native-jsi-view-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymild%2Freact-native-jsi-view-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymild%2Freact-native-jsi-view-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeymild","download_url":"https://codeload.github.com/sergeymild/react-native-jsi-view-helpers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeymild%2Freact-native-jsi-view-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["jsi","react-native","turbomodule"],"created_at":"2026-01-17T16:10:21.445Z","updated_at":"2026-01-17T16:10:22.096Z","avatar_url":"https://github.com/sergeymild.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-jsi-view-helpers\n\nReact Native Jsi view helpers\n\n## Installation\n\n```sh\npackage.json\n\"react-native-jsi-view-helpers\": \"sergeymild/react-native-jsi-view-helpers#1.0.10\"\nyarn\nnpx pod-install\n```\n\n## Usage\n\n```typescript\nimport { viewHelpers } from \"react-native-jsi-view-helpers\";\n\nexport interface MeasureParams {\n  text: string;\n  fontSize: number;\n  maxWidth: number;\n  allowFontScaling?: boolean;\n  usePreciseWidth?: boolean;\n  fontFamily?: string;\n  weight?: TextProps['fontWeight']\n}\n\nexport interface MeasureTextResult {\n  height: number;\n  width: number;\n  lineCount: number;\n  lastLineWidth: number;\n}\n\nexport interface MeasureViewResult {\n  height: number;\n  width: number;\n  x: number;\n  y: number;\n}\n\nexport class viewHelpers {\n  static measureText(params: MeasureParams): MeasureTextResult;\n  static measureView(ref: React.RefObject\u003cany\u003e): MeasureViewResult;\n  \n  // scroll to any child in ScrollView\n  static scrollToChild(\n    params:\n      | {\n          // nativeID of scroll view\n          scrollNativeID: string;\n          // nativeID of child in scroll view (can be nested in another views)\n          childNativeID: string;\n          // offset\n          offset?: number;\n          // scroll to child end view (by default scroll to top)\n          scrollToEnd?: boolean;\n        }\n      | {\n          // ref of scroll view\n          scrollViewRef: React.RefObject\u003cScrollView\u003e;\n          childNativeID: string;\n          offset?: number;\n          scrollToEnd?: boolean;\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeymild%2Freact-native-jsi-view-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeymild%2Freact-native-jsi-view-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeymild%2Freact-native-jsi-view-helpers/lists"}