Skip to content

React Native

React Dialog Async supports React Native out of the box with no additional configuration, as it does not have any dependency on react-dom.

See the Recommended UI Libraries section for suggestions on dialog components for React Native.

One of the main challenges with creating custom dialogs in React Native is the lack of an equivalent to createPortal from react-dom. React Dialog Async solves this in most cases with the <DialogOutlet/> component, as it can be placed outside of your main app component, allowing dialogs to be rendered above all other content.

main.tsx
const Main = () => {
return (
<DialogProvider>
<App />
<DialogOutlet/> {/* <-- Dialogs will be rendered here */}
</DialogProvider>
)
}