Gathering detailed insights and metrics for @stackbuilders/react-native-spotlight-tour
Gathering detailed insights and metrics for @stackbuilders/react-native-spotlight-tour
Gathering detailed insights and metrics for @stackbuilders/react-native-spotlight-tour
Gathering detailed insights and metrics for @stackbuilders/react-native-spotlight-tour
A highly customizable tour feature with an awesome spotlight effect
npm install @stackbuilders/react-native-spotlight-tour
Typescript
Module System
Node Version
NPM Version
TypeScript (80.67%)
JavaScript (13.08%)
Kotlin (2.33%)
Swift (2%)
Ruby (1.62%)
HTML (0.3%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
410 Stars
120 Commits
33 Forks
21 Watchers
6 Branches
66 Contributors
Updated on Jul 14, 2025
Latest Version
2.1.0
Package Id
@stackbuilders/react-native-spotlight-tour@2.1.0
Unpacked Size
89.51 kB
Size
21.90 kB
File Count
48
NPM Version
8.19.3
Node Version
19.6.0
Published on
Feb 14, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
3
39
react-native-spotlight-tour
is a simple and intuitive library for React Native (Android, iOS, and Web
compatible). It allows you to implement a highly customizable tour feature with an awesome spotlight
effect. This library handles animations at the native level and is perfect for the following:
With npm
:
1$ npm install @stackbuilders/react-native-spotlight-tour
With yarn
:
1$ yarn add @stackbuilders/react-native-spotlight-tour
To be able to use the tour, you'll need to wrap everything around a SpotlightTourProvider
. This provider component will also give you access to a hook to retrieve the SpotlightTour
context, which gives information and fine control over the tour.
1import { AttachStep, SpotlightTourProvider, TourStep } from "@stackbuilders/react-native-spotlight-tour"; 2 3const mySteps: TourStep[] = [ 4 // ... 5]; 6 7return ( 8 <SpotlightTourProvider steps={mySteps} overlayColor={"gray"} overlayOpacity={0.36}> 9 {({ start }) => ( 10 <> 11 <Button title="Start" onPress={start} /> 12 13 <View> 14 <AttachStep index={0}> 15 <Text>Introduction</Text> 16 </AttachStep> 17 18 <Text> 19 This is an example using the spotlight-tour library. 20 Press the Start button to see it in action. 21 </Text> 22 </View> 23 24 <View> 25 <AttachStep index={1}> 26 <TitleText>Documentation</TitleText> 27 </AttachStep> 28 <DescriptionText> 29 Please, read the documentation before installing. 30 </DescriptionText> 31 </View> 32 </> 33 )}; 34 </SpotlightTourProvider> 35);
The tour requires an array of steps to be configured, which will map directly to each <AttachStep />
index. Bellow is a complete example of a TourStep
array:
1import { 2 Align, 3 Position, 4 TourStep, 5 useSpotlightTour 6} from "@stackbuilders/react-native-spotlight-tour"; 7 8const mySteps: TourStep[] = [{ 9 alignTo: Align.SCREEN, 10 position: Position.BOTTOM, 11 render: ({ next }) => ( 12 <View> 13 <Text>This is the first step of tour!</Text> 14 <Button title="Next" onPress={next} /> 15 </View> 16 ) 17}, { 18 alignTo: Align.SPOT, 19 before: () => { 20 return DataService.fetchData() 21 .then(setData); 22 }, 23 position: Position.RIGHT, 24 render: () => { 25 // You can also use the hook inside the step component! 26 const { previous, stop } = useSpotlightTour(); 27 28 return ( 29 <View> 30 <Text>This is the first step of tour!</Text> 31 <Button title="Previous" onPress={previous} /> 32 <Button title="Stop" onPress={stop} /> 33 </View> 34 ); 35 } 36}];
You can also find a complete example here.
To view all the types, options, and props, please check the complete API Reference documentation.
MIT, see the LICENSE file.
Do you want to contribute to this project? Please take a look at our contributing guideline to know how you can help us build it.
No vulnerabilities found.
Reason
12 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 12/25 approved changesets -- score normalized to 4
Reason
9 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More