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

@qeepsake/react-navigation-overlay

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qeepsake/react-navigation-overlay

Don't we all wish that React Navigation had awesome Overlays like React Native Navigation ? Now it does 💪


Version published
Weekly downloads
977
decreased by-57%
Maintainers
1
Weekly downloads
 
Created

React Navigation Overlay

This library attempts to add support for "Overlays" to React Navigation similar to the showOverlay API in React Native Navigation.

Install

npm i @qeepsake/react-navigation-overlay

Usage

Add the ReactNavigationOverlay component to the top of your tree inside your NavigationContainer. This will allow the Overlays to be displayed.

import { ReactNavigationOverlay } from "react-navigation-overlay";

<NavigationContainer>
  ...
  <ReactNavigationOverlay />
</NavigationContainer>;

Display an overlay by using the Overlay.show() method, and passing your component and any props.

Overlay.show(MyFirstOverlay, { title: "..." })

...

const MyFirstOverlay = ({ title }) => {
    return ...;
}

Authors

License

This project is licensed under the MIT License

FAQs

Package last updated on 05 Oct 2021

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