Manages modal stacks in React Native: define modals once, open from anywhere, stack multiple modals, and control transitions.
Overview
React Native Modalfy is a library for apps that show many modals and need stack semantics rather than a single React Native Modal per screen. It provides the logic to register modal components, present them from any part of the tree, show several at once, and animate transitions between stack levels.
You supply the modal UI; the library handles opening, closing, and ordering. The API follows patterns inspired by React Navigation to reduce context switching between screens and modals. It relies on React Context and Hooks and requires a minimum React Native version that ships with compatible React releases.
Guides and an API reference are available in the documentation. A demo app is available on Expo and can be opened with Expo Go. The library originated from colorfy’s need for complex modal flows that community modal wrappers did not cover.
Key features
- Global modal open from anywhere
- Multiple simultaneous stacked modals
- Custom transition animations
- Bring-your-own modal components
- React Navigation–inspired API
- Context and hooks based
- Expo demo app
- Published guides and API reference
Use cases
- Deep modal stacks in mobile apps
- Centralized modal routing
- Animated modal transitions
- Replacing scattered Modal instances