Socket
Book a DemoInstallSign in
Socket

@infinitui/modalium

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@infinitui/modalium

A customizable modal component for React Native applications with animations, blur effects, and dynamic entry points

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
10
11.11%
Maintainers
1
Weekly downloads
 
Created
Source

@infinitui/modalium

Modalium — Animated modals with superpowers for React Native & Expo.

Create smooth, elegant, and highly customizable modals with animations, blur effects, and multiple presentation styles. Fully compatible with React Native & Expo.

🎬 Demo

Experience Modalium in action:

▶️ Watch the animated demo

Or see it below:

Démo Modalium

🚀 Installation

npm install @infinitui/modalium
# or
yarn add @infinitui/modalium

📦 Required Peer Dependencies

Modalium relies on several external packages to function properly. You must install these in your project:

npm install react-native-safe-area-context react-native-gesture-handler react-native-reanimated expo-blur

⚠️ Important Setup Notes:

Some of these libraries require additional configuration:

  • react-native-reanimated: Add the Babel plugin and enable Reanimated in your babel.config.js
  • react-native-gesture-handler: Wrap your app in GestureHandlerRootView
  • expo-blur: Works out of the box with Expo, but requires expo-modules-core in bare projects

Refer to each library’s documentation for full setup instructions.

🧠 Usage Example

import React, { useState } from 'react';
import { View, Button, Text } from 'react-native';
import Modalium from '@infinitui/modalium';

export default function App() {
  const [visible, setVisible] = useState(false);

  return (
    <View style={{ flex: 1 }}>
      <Button title="Open Modal" onPress={() => setVisible(true)} />

      <Modalium
        visible={visible}
        onRequestClose={() => setVisible(false)}
        animationType="slide"
        presentationStyle="overFullScreen"
        useBlurOverlay={true}
        blurIntensity={80}
        swipeToClose={true}
        modalBgColor="#ffffff"
        statusBarTranslucent={true}
      >
        <View style={{ backgroundColor: '#ffffff', padding: 20, borderRadius: 12 }}>
          <Text style={{ fontSize: 18 }}>Hello from Modalium 👋</Text>
          <Button title="Close" onPress={() => setVisible(false)} />
        </View>
      </Modalium>
    </View>
  );
}

⚙️ Props Reference

PropTypeDefaultDescription
visiblebooleanShow or hide the modal
onRequestClose() => voidCalled when modal should close
onShow() => voidCalled when modal is shown
onDismiss() => voidCalled when modal is dismissed
durationnumber333Animation duration in ms
childrenReact.ReactNodeModal content
transparentbooleantrueUse semi-transparent background
animationType`'fade''slide''scale'
statusBarTranslucentbooleanfalseMake status bar translucent
presentationStyle`'fullScreen''overFullScreen''formSheet'
blockBackgroundInteractionbooleantruePrevent interaction with background
swipeToClosebooleantrueEnable swipe-down to close
barStyle`'light-content''dark-content'`'dark-content'
useBlurOverlaybooleanfalseEnable blur background
blurIntensitynumber50Blur intensity
blurTint`'light''dark''default'`
circleBgColorstring'white'Background color of animated circle
circleScaleMaxnumber10Maximum scale of the circle animation
circleSizenumber100Initial size of the circle
startX / startYnumberCoordinates for circle origin
modalBgColorstringBackground color of modal content container

✅ Compatibility

  • ✅ React Native
  • ✅ Expo
  • ✅ Android & iOS
  • ✅ Works with react-native-safe-area-context, expo-blur, react-native-reanimated, and react-native-gesture-handler

🤝 Contributing

Modalium is actively evolving and I’m looking for contributors to help improve it!

If you love animation, UI polish, or just want to help build beautiful React Native components — fork the repo, open a PR, or start a discussion.

👉 GitHub Repository

👨‍💻 Author

Ben-Jamin MK
Creator of modern UI components for React Native.
GitHub

Keywords

react-native

FAQs

Package last updated on 05 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts