Socket
Book a DemoInstallSign in
Socket

expo-ios-visual-blur

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-ios-visual-blur

๐ŸŽจ Native iOS progressive blur for React Native (Expo) โ€” smooth, customizable SwiftUI blur effects with directional gradients and easy integration. ๐ŸŽโœจ

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
115
66.67%
Maintainers
1
Weekly downloads
ย 
Created
Source

expo-ios-visual-blur banner

๐ŸŽจ expo-ios-visual-blur

Native SwiftUI progressive blur for React Native (Expo) on iOS โ€” dynamic, smooth, and configurable.

Made with React Native Maintained? Yes Runs with Expo

Built with love

โœจ Features

  • ๐ŸŽ Native SwiftUI implementation for performant and smooth blur effects on iOS
  • ๐ŸŒˆ Progressive variable blur with customizable max blur radius
  • ๐Ÿ”„ Directional blur gradients: blurred top to clear bottom or blurred bottom to clear top
  • ๐ŸŽจ Supports start offset control for where blur begins vertically
  • โš™๏ธ Dynamic, runtime-updatable blur parameters with seamless transitions
  • ๐Ÿ–ผ๏ธ Can overlay on any React Native view with children support
  • ๐Ÿšซ Safe area aware, or choose to ignore it for fullscreen effects
  • ๐ŸŽญ Optional masking and flexible styling via React Native props
  • ๐Ÿ“ฑ Exclusive iOS support using native UIVisualEffectView + CAFilter for advanced blur control

๐Ÿš€ Installation

1. Add the package

npx expo install expo-ios-visual-blur

2. Install CocoaPods dependencies

cd ios && pod install

3. (Optional) Prebuild the iOS project if you use bare workflow or custom native code

npx expo prebuild --platform ios

4. Run your app

pnpm ios
# or
npx expo run:ios

โš ๏ธ Note: This module uses SwiftUI and iOS-only native APIs โ€” it does not support Android or other platforms.

๐Ÿ“ฆ Usage

import React from "react";
import { BlurView, BlurViewDirection } from "expo-ios-visual-blur";
import { Image } from "react-native";

export default function App() {
  return (
    <BlurView
      direction={BlurViewDirection.BlurredBottomClearTop}
      maxBlurRadius={21}
      startOffset={0.1}
      style={{ borderRadius: 10, overflow: "hidden" }}
    >
      <Image
        source={{
          uri: "https://images.unsplash.com/photo-1754638069174-7aa06c176b61?q=80&w=1364&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
        }}
        style={{ width: 200, height: 200 }}
      />
    </BlurView>
  );
}

โš™๏ธ Props

PropTypeDefaultDescription
maxBlurRadiusnumber20Maximum blur radius applied to the view
directionBlurViewDirection"blurredTopClearBottom"Direction of the blur gradient โ€” from top to bottom or bottom to top
startOffsetnumber (0 to 1)0Starting point of the blur gradient (relative vertical offset)
styleViewStyleundefinedCustom styles applied to the container view
childrenReact.ReactNodeundefinedReact Native children to render inside the blur

๐Ÿ”ค BlurViewDirection Enum

DirectionDescription
BlurredTopClearBottomBlur fades from top to bottom
BlurredBottomClearTopBlur fades from bottom to top

๐Ÿ“ฑ Platform Support

PlatformSupport
iOSโœ… Fully supported (SwiftUI)
AndroidโŒ Not supported
WebโŒ Not supported

๐Ÿ›  Built With

  • โš›๏ธ React Native & Expo
  • ๐ŸŽ SwiftUI
  • ๐Ÿงช Native iOS UIVisualEffectView with custom CAFilter for variable blur

โค๏ธ Contributing

Contributions, issues, and feature requests are welcome! Feel free to open a pull request or issue.

๐Ÿ“„ License

MIT ยฉ rit3zh

Keywords

react-native

FAQs

Package last updated on 09 Aug 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