React Native Modals screenshot

React Native Modals

Author Avatar Theme by Jacklam718
Updated: 19 Dec 2020
2209 Stars

A react native modals library. Swipeable. Highly customizable. Support multi modals & Support custom animation. For IOS & Android.

Categories

Overview:

The React Native Modals library is a library for iOS and Android that allows developers to easily create modals in their React Native applications. It provides a set of components and props that can be used to customize the appearance and behavior of the modals. The library also supports various animations and swipe gestures for user interaction.

Features:

  • Imperative APIs: The library provides imperative APIs for showing and dismissing modals, allowing developers to have full control over when and how the modals are displayed.
  • Animation Support: React Native Modals supports various animations for opening and closing modals, including fade animation, scale animation, and slide animation.
  • Swipe Gestures: The library allows users to interact with modals through swipe gestures. Developers can specify the swipe direction and threshold for triggering actions.
  • Customizable Title: Modals can have a customizable title bar, allowing developers to add a title component or a custom view.
  • Responsive Sizing: The modals can be customized with fixed or percentage-based width and height, allowing them to adapt to different screen sizes.
  • Modal Events: Developers can use various event callbacks provided by the library, such as onShow, onDismiss, onMove, onSwiping, onSwipeRelease, onSwipingOut, and onSwipeOut, to handle modal actions and user interactions.

Installation:

To install React Native Modals, you can use npm. Open your terminal and run the following command:

npm install react-native-modals

Once the installation is complete, you can import the library in your React Native project like this:

import { Modal, ModalTitle, ModalContent, ModalFooter } from 'react-native-modals';

Summary:

React Native Modals is a library that provides an easy way to create modals in React Native applications. It offers various features such as imperative APIs, animation support, swipe gestures, customizable title, and responsive sizing. The library provides several components and props for developers to customize the appearance and behavior of the modals. With React Native Modals, developers can create interactive and visually appealing modals in their applications.