rn-interactive-walkthrough
v2.0.0
Published
Create interactive walkthroughs and onboarding tutorials in react-native.
Downloads
893
Maintainers
Readme
React Native Interactive Walkthrough
A cross-platform interactive walkthrough library for React Native that is performant, simple, extensible, and works with Expo.
Highlight a part of your screen, position a tooltip relative to it, and guide your users through your app without wrapper components or prop drilling.
Demo
Here is a demo being used in production:
https://user-images.githubusercontent.com/525212/147407154-d7374b9a-c370-4e75-a269-ecd225b4bbbc.mp4
Installation
npm install rn-interactive-walkthroughUsage
For usage see the documentation.
Quick Start
import * as React from "react";
import { WalkthroughProvider } from "rn-interactive-walkthrough";
export default function App() {
return (
<WalkthroughProvider>
<MyAwesomeApp />
</WalkthroughProvider>
);
}import { useWalkthroughStep } from "rn-interactive-walkthrough";
function HomeScreen() {
const { onLayout } = useWalkthroughStep({
number: 1,
contentComponent: NearbyUsersTooltip,
});
return (
<View style={{ flex: 1 }}>
<View style={{ height: 10 }} onLayout={onLayout}>
<Text>Here is my app!</Text>
</View>
</View>
);
}License
MIT
