This package has been deprecated

Author message:

React Navigation Overlay has moved to new organization: https://www.npmjs.com/package/@qeepsake/react-navigation-overlay

react-navigation-overlay

1.1.1 • Public • Published

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 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

Package Sidebar

Install

npm i react-navigation-overlay

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

5.06 kB

Total Files

11

Last publish

Collaborators

  • amogh-jrules
  • chestersim
  • lukebrandonfarrell
  • rodriigovieira
  • wahaheha