react-native-hotspot
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
Examples
Run example
Getting Started
Installing
npm install react-native-hotspot
Using
import { RNHotspot, RNHotspotHelper } from "react-native-hotspot";
this.componentRefs = RNHotspotHelper([
() => {
Alert.alert(null, "This button does this thing.");
},
() => {
Alert.alert(null, "This button does other thing.");
}
]);
<RNHotspot componentRefs={this.componentRefs} />
<Button
title="Button #1"
onPress={() => {}}
ref={this.componentRefs[0].ref}
/>
<Button
title="Button #2"
onPress={() => {}}
ref={this.componentRefs[1].ref}
/>
Testing
This component has been tested on React Native v0.57
License
react-native-hotspot is MIT licensed and built with :heart: in Austin, TX by the team at LawnStarter