GSTJ / react-native-magic-modal

🦄 A modal library that can be called imperatively from anywhere!
https://github.com/GSTJ/react-native-magic-modal
MIT License
181 stars 8 forks source link

feat!: support multiple modals #81

Closed GSTJ closed 3 months ago

GSTJ commented 3 months ago

This update introduces the ability to support multiple modals being shown at the same time. Previously, only one modal could be shown at a time. The changes include:

  1. Global and Hook Hide Functions: Added new global and hook-based hide functions to manage modal hiding more effectively. This includes the deprecation of calling magicModal.hide without a modal ID.
  2. Scrollable Modals: Added a new example and support for scrollable modals. This can be achieved by disabling swipe gestures using the swipeDirection: undefined option.
  3. Readme Updates: Improved usage documentation with preferred patterns, including new examples for imperative hiding and using hooks within modals.
  4. Tooling Updates: Updated various development dependencies, scripts, and configurations to ensure compatibility and improved development workflow.

Breaking Changes

Migration Guide