{"id":4403,"url":"https://github.com/lawnstarter/react-native-hotspot","last_synced_at":"2025-05-02T20:30:36.941Z","repository":{"id":32428946,"uuid":"133370252","full_name":"lawnstarter/react-native-hotspot","owner":"lawnstarter","description":"🎯 A React Native component that displays hotspots over desired components to help lead your users through an onboarding flow or direct them towards new UI elements","archived":false,"fork":false,"pushed_at":"2024-11-05T18:52:09.000Z","size":2170,"stargazers_count":32,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-22T06:44:35.606Z","etag":null,"topics":["frontend","hotspot","react","react-native"],"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/lawnstarter.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":"2018-05-14T14:06:24.000Z","updated_at":"2025-02-28T16:14:19.000Z","dependencies_parsed_at":"2023-01-14T21:15:20.412Z","dependency_job_id":null,"html_url":"https://github.com/lawnstarter/react-native-hotspot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawnstarter%2Freact-native-hotspot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawnstarter%2Freact-native-hotspot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawnstarter%2Freact-native-hotspot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lawnstarter%2Freact-native-hotspot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lawnstarter","download_url":"https://codeload.github.com/lawnstarter/react-native-hotspot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252103884,"owners_count":21695382,"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":["frontend","hotspot","react","react-native"],"created_at":"2024-01-05T20:17:10.820Z","updated_at":"2025-05-02T20:30:35.086Z","avatar_url":"https://github.com/lawnstarter.png","language":"JavaScript","funding_links":[],"categories":["Components"],"sub_categories":["Navigation"],"readme":"# react-native-hotspot\n\n[![npm version](https://badge.fury.io/js/react-native-hotspot.svg)](https://badge.fury.io/js/react-native-hotspot)\n\nA React Native component that displays hotspots over desired components to help lead your users through an onboarding flow or direct them towards new UI elements\n\n![iOS Example](./example/ios-example.gif)\n![Android Example](./example/android-example.gif)\n\n[Examples](https://github.com/lawnstarter/react-native-hotspot/tree/master/example)\n\n[Run example](https://snack.expo.io/@lfkwtz/react-native-hotspot)\n\n## Getting Started\n\n### Installing\n\n`npm install react-native-hotspot`\n\n### Using\n\n```js\nimport { RNHotspot, RNHotspotHelper } from \"react-native-hotspot\";\n\n// in your screen's constructor, use the helper with an array of onPress actions you want your hotspots to trigger\nthis.componentRefs = RNHotspotHelper([\n    () =\u003e {\n        // here you can drop in whatever action(s) you want to occur on tap of the hotspot.\n        // you'll also likely want to use local storage here and/or an api call to mark each one as seen.\n        Alert.alert(null, \"This button does this thing.\");\n    },\n    () =\u003e {\n        Alert.alert(null, \"This button does other thing.\");\n    }\n]);\n\n// drop the component below the outer wrapping parent of your screen\n\u003cRNHotspot componentRefs={this.componentRefs} /\u003e\n\n\n// expose the refs in the same order as the array defined above\n\u003cButton\n    title=\"Button #1\"\n    onPress={() =\u003e {}}\n    ref={this.componentRefs[0].ref}\n/\u003e\n\u003cButton\n    title=\"Button #2\"\n    onPress={() =\u003e {}}\n    ref={this.componentRefs[1].ref}\n/\u003e\n```\n\n## Testing\n\nThis component has been tested on React Native v0.57\n\n## License\n\nreact-native-hotspot is [MIT licensed](https://github.com/lawnstarter/react-native-hotspot/tree/master/LICENSE) and built with :heart: in Austin, TX by the team at [LawnStarter](https://lawnstarter.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawnstarter%2Freact-native-hotspot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flawnstarter%2Freact-native-hotspot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawnstarter%2Freact-native-hotspot/lists"}