@callaars/react-native-portal
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@callaars/react-native-portal

Ultra-lightweight portal implementation.

Installation

npm install @callaars/react-native-portal

Usage

import Portal from "@callaars/react-native-portal";

export default function App() {
  return (
    <PortalProvider>
      {/** Any portaled components will appear right here. **/}

      {/** The rest of your app **/}

      <Portal>
        {/** Whenever you want to portal component put it in a Portal **/}
      </Portal>
    </PortalProvider>
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @callaars/react-native-portal

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

13.6 kB

Total Files

15

Last publish

Collaborators

  • callaars