
Description
react-native-use-modal-hooks is a set of React hooks for showing modal windows in React Native. The library provides no UI of its own. Instead it offers a convenient way to render modal components that you define elsewhere in your code. The README suggests react-modal as a simple modal component that works well with it, and it credits react-modal-hook as the reference it builds on. To use it, you wrap your application in a ModalProvider, which supplies the modal context, and then call useModal with the dialog component you want to show. The README includes a demo, install commands for npm and yarn, and code examples for both steps. The package is aimed at React Native developers who want to open dialogs from hooks and keep the modal markup separate from the screen that opens it. Because the library only manages rendering, you still provide the actual dialog component. The description on GitHub calls it syntactic sugar for handling modals with React Hooks.…
Highlights
- React hooks for modals in React Native
- No UI included, bring your own dialog
- ModalProvider supplies modal context
- useModal opens any dialog component
- Install with npm or yarn
Ratings & Reviews
No ratings yet
Be the first to rate react-native-use-modal-hooks.
People also visit
react-native-use-modal-hooks FAQ
What is react-native-use-modal-hooks?
React hooks for displaying a modal window in React Native, without providing any UI of its own.
Does it include a modal component?
No. The README suggests react-modal as a simple modal component that works well with it.
How do I use it?
Wrap your app in ModalProvider, then call useModal with the dialog component you want to show.
How do I install it?
Run npm install react-native-use-modal-hooks or yarn add react-native-use-modal-hooks.
What is it based on?
The README credits react-modal-hook as its reference.
What are the best react-native-use-modal-hooks alternatives?
Popular alternatives to react-native-use-modal-hooks include react-modal, react-native-modalbox and react-native-image-modal. See all react-native-use-modal-hooks alternatives


















