{"id":18369845,"url":"https://github.com/cawfree/react-native-simpleheat","last_synced_at":"2026-03-02T12:01:23.049Z","repository":{"id":35117410,"uuid":"208891049","full_name":"cawfree/react-native-simpleheat","owner":"cawfree","description":"The awesome simpleheat.js, bound to React Native.","archived":false,"fork":false,"pushed_at":"2022-04-29T00:43:16.000Z","size":2438,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-29T01:50:31.335Z","etag":null,"topics":["heat","heatmap","map","native","react","react-native","simple","simpleheat"],"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/cawfree.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-09-16T20:23:14.000Z","updated_at":"2025-07-01T04:47:59.000Z","dependencies_parsed_at":"2022-08-08T05:01:42.026Z","dependency_job_id":null,"html_url":"https://github.com/cawfree/react-native-simpleheat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cawfree/react-native-simpleheat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-simpleheat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-simpleheat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-simpleheat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-simpleheat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cawfree","download_url":"https://codeload.github.com/cawfree/react-native-simpleheat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cawfree%2Freact-native-simpleheat/sbom","scorecard":{"id":268256,"data":{"date":"2025-08-11","repo":{"name":"github.com/cawfree/react-native-simpleheat","commit":"bbf17839d2abf7e43a1d9a51f5312c011839768a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T12:43:34.690Z","repository_id":35117410,"created_at":"2025-08-17T12:43:34.691Z","updated_at":"2025-08-17T12:43:34.691Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30001652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T11:09:27.951Z","status":"ssl_error","status_checked_at":"2026-03-02T11:08:53.255Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["heat","heatmap","map","native","react","react-native","simple","simpleheat"],"created_at":"2024-11-05T23:32:33.209Z","updated_at":"2026-03-02T12:01:22.852Z","avatar_url":"https://github.com/cawfree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-simpleheat\nThe awesome [simpleheat.js](https://github.com/mourner/simpleheat), bound to React Native.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./bin/out.gif\" alt=\"react-native-simpleheat\" width=\"270\" height=\"556\"\u003e\n\u003c/p\u003e\n\n## 🚀 Getting Started\n\nUsing [npm]():\n\n```sh\nnpm install --save react-native-simpleheat\n```\n\nUsing [yarn]():\n\n```sh\nyarn add react-native-simpleheat\n```\n\n## ✍️ Example\n\nThis library exports a single `Component`, the `Heatmap`, which is essentially a React Native `\u003cWebView/\u003e` component that is pointed at a dynamic webpage which renders a full-screen heatmap. The heatmap is rendered using [Vlad's](https://github.com/mourner) awesome [`simpleheat.js`](https://github.com/mourner/simpleheat), which is quick, pretty and has a permissive distribution license.\n\n```javascript\nimport React from 'react';\nimport {\n  PanResponder,\n  View,\n  Text,\n  TouchableOpacity,\n  Alert,\n} from 'react-native';\nimport WebView from 'react-native-webview';\n\nimport Heatmap from 'react-native-simpleheat';\n\nexport default class App extends React.Component {\n  state = {\n    // XXX: This is a simple example of taking multi-touch gestures from the PanResponder\n    //      and using these to drop points on the heatmap.\n    panResponder: PanResponder\n      .create(\n        {\n          onStartShouldSetPanResponder: () =\u003e true,\n          onMoveShouldSetPanResponder: () =\u003e true,\n          onPanResponderMove: ({ nativeEvent }) =\u003e {\n            const { changedTouches } = nativeEvent;\n            const { heatmap } = this.refs;\n            this.setState(\n              {\n                data: [\n                  ...this.state.data,\n                  ...changedTouches\n                    .map(\n                      ({ locationX, locationY }) =\u003e {\n                        return [\n                          locationX,\n                          locationY,\n                          10,\n                        ];\n                      },\n                    ),\n                ],\n              },\n            );\n          },\n          onPanResponderRelease: () =\u003e this.setState({\n            data: [],\n          }),\n        },\n      ),\n    data: [],\n    gradient: undefined, // \u003c-- Here you could use a custom gradient.\n  };\n  render() {\n    const {\n      panResponder,\n      data,\n      gradient,\n    } = this.state;\n    return (\n      \u003cView\n        style={{\n          backgroundColor: 'purple', // \u003c-- HeatMap is transparent, so you can view what's underneath.\n          flex: 1,\n        }}\n      \u003e\n        \u003cHeatmap\n          ref=\"heatmap\"\n          {...panResponder.panHandlers} // \u003c-- extraProps are delegated to the containing \u003cAnimated.View/\u003e\n          WebView={WebView} // \u003c-- Implementors must define the \u003cWebView/\u003e component!\n          data={data}\n          gradient={gradient}\n          alpha={0.5} // \u003c-- Control transparency for overlays!\n        /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n```\n\n## 🌎 Maps\n\nIf you specify a `region` prop to the `\u003cHeatmap/\u003e`, the points in your data prop will be treated as `latitude` and `longitude` coordinates. For  example, the configuration below would render intensity over Liverpool, UK.\n\n```javascript\nimport React from 'react';\nimport WebView from 'react-native-webview';\nimport Heatmap from 'react-native-simpleheat';\n\nexport default () =\u003e (\n  \u003cHeatmap\n    WebView={WebView}\n    region={{\n      latitude: -3.0118499,\n      longitude: 53.4139281,\n      latitudeDelta: 1,\n      longitudeDelta: 1,\n    }}\n    data={[\n      [\n        53.4139281, // longitude\n        -3.0118499, // latitude\n        10, // intensity\n      ],\n    ]}\n  /\u003e\n);\n```\n\n## 📌 Props\n\nProp                  | Type     | Default                   | Required\n--------------------- | -------- | ------------------------- | --------\nWebView|func||Yes\npointerEvents|string|'box-only'|No\ncontainerStyle|shape[object Object]|styles.containerStyle|No\nmax|number|10|No\ngradient|shape[object Object]|{ /* see code */ }|No\nonLoadEnd|func|e =\u003e null|No\ndata|array|[]|No\nminOpacity|number|0.05|No\nalpha|number|1.0|No\nregion|shape|null|No\n\n## ✌️ License\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Freact-native-simpleheat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcawfree%2Freact-native-simpleheat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcawfree%2Freact-native-simpleheat/lists"}