A lightweight React Native library that allows rendering components above all other content using a portal pattern. Version 1.0.7 is the latest stable release. It provides a `Host` wrapper and `Portal` component, extracted from react-native-paper and optimized for use with react-native-modalize and react-navigation. Unlike full-featured portal libraries, it focuses on simplicity and minimal overhead, supporting React 15+ and React Native 0.50+. It ships TypeScript definitions and uses ESM.
npm install react-native-portalizeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage wrapping the app in Host and using Portal to render content on top.
Wrap the entire app tree with <Host> at the root.
Ensure only one Host component exists, typically at the App root.
Remove style prop from Host and apply via a parent View.
Move context providers (e.g., ThemeProvider) to wrap the Host component.
Wrap the root component in <Host>...</Host>.
Ensure the entire app is wrapped in a single Host.
Upgrade react-native to >=0.50.0 and ensure proper setup.