React Native Copilot screenshot

React Native Copilot

Author Avatar Theme by Mohebifar
Updated: 17 Dec 2024
2405 Stars

Step-by-step walkthrough tooltip for your react native app

Categories

Overview

The React Native Copilot is a tool used for guiding users through an app and providing step-by-step walkthroughs. It allows developers to create interactive tutorials for their mobile applications. The installation process is straightforward, and the documentation provides clear instructions on how to set up the walkthrough steps and customize the tooltips.

Features

  • Smooth SVG Animation: The option to create smooth SVG animations for walkthroughs.
  • Walkthroughable HOC: Use the walkthroughable HOC to make elements walkthroughable.
  • Step Definitions: Define walkthrough steps with unique names, orders, and text descriptions.
  • Start Function: Start the tutorial using the useCopilot hook.
  • Overlay Options: Choose between view overlay or SVG overlay for better visual effects.
  • Custom Tooltip Components: Customize tooltip and step number UI components.
  • Navigation Functions: Use handleNext, handlePrev, handleStop, and handleNth for navigation.
  • Tooltip Styling: Customize the tooltip’s wrapper style and manage tooltip width dynamically.

Installation

To install React Native Copilot, you can follow these steps:

  1. Install and link react-native-svg if you want a smooth SVG animation.
  2. Wrap the desired app portion inside <CopilotProvider>.
  3. Use the walkthroughable HOC for react native components and wrap them with CopilotStep.
  4. Define each CopilotStep with name, order, text, and optionally set the active prop.
  5. Call the start function from the useCopilot hook to begin the tutorial.
  6. Choose between view overlay or SVG overlay by specifying the overlay prop in <CopilotProvider>.

Summary

React Native Copilot is a useful tool for creating interactive tutorials in mobile applications. It offers features like smooth SVG animation, customizable tooltips, and navigation functions for guiding users through the app. By following the installation guide and utilizing the provided components, developers can enhance the user experience with step-by-step walkthroughs and tooltip customization.