Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-app-tour

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-app-tour

App tour for React Native.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

rn-app-tour

npm version npm downloads code style: prettier

Animated app tour component for React Native.

demo gif

Quick start

Install

yarn add rn-app-tour
# or
npm install rn-app-tour

Usage

Render the AppTour component in your app's entry file, as the LAST CHILD in the View hierarchy (along with any other components that might be rendered there):

// App.tsx
import AppTour from 'rn-app-tour';

export function App(props) {
  return (
    <>
      {/* ... */}
      <AppTour />
    </>
  );
}

See Example/App.tsx for a complete example.

Then use it anywhere in your app (even outside React components), by calling any AppTour method directly:

import AppTour from 'rn-app-tour';
/* ... */
AppTour.show({
  navigation,
  borderRadiusInPercent: 100,
  modalComponent: appTourModal,
  ref: highlightRef,
  yOffset: 0,
  onBackgroundPress: () => AppTour.hide(),
});

See Example/Screens/HomeScreen.tsx for a complete example.

Run example

ios

npm run example:ios

android

npm run example:android

License

ISC

Keywords

FAQs

Package last updated on 01 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc