A modern React Native blur view component that provides native blur effects and liquid glass effects for iOS (with Android fallback to enhanced blur).
iOS (left) and Android (right) blur effects in action
Liquid Glass effect in action (iOS 26+ only)
| Library Version | Minimum Xcode Version | iOS Features Available |
|---|---|---|
| 0.3.0+ (Current) | Xcode 26.0 | β
Full liquid glass effects with UIGlassEffect API β Enhanced SwiftUI implementation β All blur types and system materials |
| 0.2.1 | Xcode 16.0+ | β
Standard blur effects β System materials (iOS 13+) β No liquid glass effects |
| Xcode Version | Library Compatibility | Features Available | Notes |
|---|---|---|---|
| Xcode 26.0+ | β Fully Supported | β
All features including liquid glass effects β UIGlassEffect API β SwiftUI implementation β All blur types and system materials |
Recommended for current version |
| Xcode 16.x and below | β Not Supported | β Liquid glass effects β UIGlassEffect API |
Use library version 0.2.1 instead |
β οΈ Critical Requirement: The current version (0.3.0+) requires Xcode 26.0 or higher and will not work with older Xcode versions. This is a hard requirement due to the UIGlassEffect API and SwiftUI enhancements introduced in Xcode 26.0.
π‘ Migration Tip: If you're unable to upgrade to Xcode 26.0, please use version 0.2.1 of this library which supports Xcode 16.0 and provides standard blur effects without liquid glass capabilities.
- π Liquid Glass Effects: Revolutionary glass effects using iOS 26+ UIGlassEffect API
- π¨ Multiple Blur Types: Support for various blur styles including system materials on iOS
- π± Cross-Platform: Works on both iOS and Android
- βΏ Accessibility: Automatic fallback for reduced transparency settings
- π§ TypeScript: Full TypeScript support with proper type definitions
- π Turbo Module: Built with React Native's new architecture (Fabric)
- π― Customizable: Adjustable blur intensity, glass tint colors, and opacity
- π‘ Performance Optimized: Uses hardware acceleration for smooth rendering
- π οΈ Easy to Use: Simple API for quick integration into your React Native projects
- π¦ Modern: Uses SwiftUI for iOS and Kotlin for Android, ensuring cutting-edge development practices
- π Smart Fallbacks: Graceful degradation from liquid glass to blur on older iOS versions
This section provides a detailed comparison between @sbaiahmed1/react-native-blur and other popular blur libraries in the React Native ecosystem.
π vs. @react-native-community/blur
| Feature | @sbaiahmed1/react-native-blur | @react-native-community/blur |
|---|---|---|
| ποΈ New Architecture Support | β Full Fabric/Turbo Module support | β Limited support, crashes on Android |
| π€ Android Real Blur | β Hardware-accelerated real blur + liquid glass | Hardware-accelerated real blur |
| π iOS Blur Quality | β Native UIVisualEffectView + UIGlassEffect | β Native UIVisualEffectView only |
| π Liquid Glass Effects | β Full support (iOS 26+ UIGlassEffect & Android) | β Not supported |
| π TypeScript Support | β Complete TypeScript definitions with IntelliSense | |
| π§ Maintenance Status | β Actively maintained | |
| π¦ Bundle Size | π‘ Moderate (includes native blur libs) | π‘ Moderate (includes BlurView lib) |
| π― API Design | β Modern, intuitive API with smart defaults | π‘ Legacy API design |
| β‘ Performance | β Hardware-accelerated on both platforms | β Hardware-accelerated on both platforms |
| βΏ Accessibility | β Full reduced transparency + motion support | β Basic reduced transparency support |
| π Documentation | β Comprehensive guides + live examples | π‘ Basic README documentation |
| π¨ Blur Types | β iOS system materials + custom Android effects | β iOS blur types (including iOS 13 materials) |
| π§ Android Blur Methods | β Native hardware-accelerated blur | β Native hardware-accelerated blur |
| π± Platform Support | β iOS, Android with feature parity | β iOS (full), Android (limited overlay) |
π Why Choose @sbaiahmed1/react-native-blur:
- π― Revolutionary Android Experience: First library to bring real hardware-accelerated blur to Android, including liquid glass effects. No more fake transparency overlays!
- π Liquid Glass Pioneer: Only library supporting iOS 26+ UIGlassEffect API for stunning liquid glass materials on both platforms
- ποΈ Future-Proof Architecture: Built exclusively for React Native's new architecture (Fabric/Turbo Modules) - no legacy baggage
- β‘ Superior Performance: Hardware acceleration on both platforms with GPU-optimized rendering pipelines
- π§ Modern Development: Swift for iOS, Kotlin for Android - leveraging the latest native technologies
- π Active Innovation: Regular feature updates, performance improvements, and new blur effects
When to choose @react-native-community/blur:
- Legacy projects that can't upgrade to new architecture
- iOS-only applications where Android blur quality isn't important
- Projects requiring maximum stability over cutting-edge features
π vs. expo-blur
| Feature | @sbaiahmed1/react-native-blur | expo-blur |
|---|---|---|
| π« Expo Dependency | β Zero dependencies on Expo ecosystem | β Requires Expo SDK + managed workflow |
| π± Bare React Native | β Works with any RN project out-of-the-box | |
| π€ Android Support | β Real hardware-accelerated blur + liquid glass | |
| π iOS Support | β Full native blur + UIGlassEffect (iOS 26+) | β Native UIVisualEffectView support |
| π Liquid Glass Effects | β Full support (iOS 26+ UIGlassEffect & Android) | β Not supported, no plans to add |
| π¦ Bundle Size | π‘ Moderate (includes native libs) | β Lightweight (when using Expo managed) |
| βοΈ Setup Complexity | β
Simple npm install + auto-linking |
π‘ Requires Expo development build setup |
| π¨ Blur Types | β iOS system materials + custom Android effects | β iOS tint types (light, dark, system materials) |
| π― API Design | β
blurAmount + blurType for precise control |
β
intensity + tint (simple but limited) |
| ποΈ New Architecture | β Native Fabric/Turbo Module support | β Expo handles compatibility layer |
| π¨βπ» Development Experience | β Standard RN development workflow | β Excellent with Expo CLI tools |
| π Production Flexibility | β Any deployment method (CodePush, OTA, stores) | π‘ Limited to Expo/EAS deployment |
| π§ Native Module Integration | β Easy integration with other native modules | |
| π€ Android Blur Quality | β Hardware-accelerated real blur | β Experimental (dimezisBlurView or none fallback) |
π Why Choose @sbaiahmed1/react-native-blur:
- π No Vendor Lock-in: Complete freedom from Expo ecosystem - works with any React Native setup
- π― Revolutionary Android: First library to deliver real blur effects on Android, not fake transparency tricks
- π Liquid Glass Innovation: Exclusive support for cutting-edge liquid glass materials on both platforms
- π’ Enterprise Ready: Perfect for brownfield apps, custom native modules, and complex deployment scenarios
- π¨ Advanced Customization: 15+ iOS system materials plus custom Android blur implementations
- β‘ Direct Performance: No abstraction layers - direct access to native blur APIs for maximum performance
- π§ Developer Freedom: Use any build system, deployment method, or native module without restrictions
When to choose expo-blur:
- Already deeply invested in Expo managed workflow
- Building simple apps with basic blur needs (iOS-focused)
- Prefer Expo's managed dependency system over manual configuration
- Don't need advanced blur effects or Android blur quality
| Metric | @sbaiahmed1/react-native-blur | @react-native-community/blur | expo-blur |
|---|---|---|---|
| π iOS Rendering | Hardware-accelerated UIVisualEffect + UIGlassEffect | Hardware-accelerated UIVisualEffect | Hardware-accelerated UIVisualEffect |
| π€ Android Rendering | Hardware-accelerated real blur | Hardware-accelerated real blur | β Software overlay (fake blur) |
| π§ Memory Usage | Optimized with native BlurView libs | Optimized with native BlurView libs | Low (no real Android blur) |
| βοΈ CPU Impact | Low (GPU-based on both platforms) | iOS: Low, Android: Minimal (no blur) | iOS: Low, Android: Minimal (no blur) |
| π Frame Rate Impact | Minimal impact on both platforms | iOS: Minimal, Android: None (no blur) | iOS: Minimal, Android: None (no blur) |
| π― Blur Quality | Excellent on both platforms | iOS: Excellent, Android: Poor | iOS: Good, Android: Poor |
| π Liquid Glass Performance | Native UIGlassEffect + Android equivalent | β Not available | β Not available |
| π New Architecture Performance | Optimized for Fabric/Turbo Modules | Limited compatibility | Expo abstraction layer |
| Aspect | @sbaiahmed1/react-native-blur | @react-native-community/blur | expo-blur |
|---|---|---|---|
| β GitHub Stars | π Growing rapidly (new innovative features) | π Established (3.8k+, legacy codebase) | π Part of Expo ecosystem |
| π― Issue Response | β Active core maintainer (< 24h response) | π‘ Community-driven (slow response) | β Expo team support |
| π Documentation Quality | β Comprehensive guides + live examples | π‘ Basic README only | β Good (Expo docs) |
| π Update Frequency | β Regular feature updates (weekly/monthly) | π‘ Sporadic maintenance updates | β Regular (with Expo releases) |
| π Breaking Changes | β Strict semantic versioning | β Managed by Expo | |
| π Bug Fixes | β Rapid fixes (same-day for critical issues) | π‘ Depends on community availability | β Good (Expo team) |
| π‘ Feature Requests | β Actively considered (roadmap-driven) | π‘ Limited by maintainer capacity | π‘ Limited to Expo priorities |
| π§ Technical Support | β Direct maintainer support | π‘ Community forums only | β Expo Discord/forums |
// Before - Limited Android support
import { BlurView } from '@react-native-community/blur';
<BlurView
style={styles.absolute}
blurType="light" // Limited to iOS blur types only
blurAmount={10} // Max 32 on Android (clamped)
reducedTransparencyFallbackColor="white"
/>
// After - Full platform support + liquid glass
import { BlurView } from '@sbaiahmed1/react-native-blur';
<BlurView
style={styles.absolute}
blurType="light" // Same API!
blurAmount={10} // No Android limitations
reducedTransparencyFallbackColor="white"
// NEW: Liquid glass support
type="liquidGlass" // Enable liquid glass effects
glassType="regular" // iOS 26+ UIGlassEffect styles
glassTintColor="#007AFF" // Glass tint color
glassOpacity={0.8} // Glass opacity (0-1)
/>β¨ Migration Benefits:
- π― Zero Breaking Changes: Drop-in replacement with same API
- π€ Real Android Blur: Instantly get hardware-accelerated blur on Android
- π Liquid Glass Bonus: Add cutting-edge liquid glass effects with one prop
- β‘ Better Performance: Hardware acceleration on both platforms
- ποΈ Future-Proof: Built for React Native's new architecture
// Before - Expo dependency + limited Android
import { BlurView } from 'expo-blur';
<BlurView
intensity={50} // 0-100 intensity scale
tint="light" // light, dark, default, system materials
experimentalBlurMethod="dimezisBlurView" // Android experimental blur
style={styles.absolute}
>
<Text>Content</Text>
</BlurView>
// After - No dependencies + real Android blur
import { BlurView } from '@sbaiahmed1/react-native-blur';
<BlurView
blurAmount={50} // intensity β blurAmount (same scale)
blurType="light" // tint β blurType (same options + more)
style={styles.absolute}
// NEW: Advanced features
type="liquidGlass" // Liquid glass effects
glassType="regular" // iOS 26+ materials
glassTintColor="#007AFF" // Glass tint color
glassOpacity={0.8} // Glass opacity (0-1)
isInteractive={true} // Touch interaction support
// No experimental props needed - real blur by default
>
<Text>Content</Text>
</BlurView>β¨ Migration Benefits:
- π No Vendor Lock-in: Remove Expo dependency completely
- π― Real Android Blur: Get actual blur effects, not fake transparency
- π Liquid Glass Effects: Access to cutting-edge iOS 26+ materials
- π Deployment Freedom: Use any build system or deployment method
- π¨ More Customization: 15+ blur types vs basic intensity control
-
Install the library:
npm uninstall @react-native-community/blur expo-blur npm install @sbaiahmed1/react-native-blur
-
Update imports:
// Replace old imports import { BlurView } from '@sbaiahmed1/react-native-blur';
-
Optional: Add liquid glass effects:
<BlurView type="liquidGlass" glassType="regular" glassTintColor="#007AFF" glassOpacity={0.8} />
-
Test on Android: Experience real blur effects for the first time! π
Choose @sbaiahmed1/react-native-blur if:
- You need real blur effects on Android (not experimental/fallback methods)
- You want liquid glass effects for modern iOS apps (iOS 26+)
- You're building with React Native's new architecture (Fabric/Turbo Modules)
- You need maximum performance on both platforms
- You want comprehensive TypeScript support with IntelliSense
- You prefer modern API design with intuitive prop names
- You need unlimited blur intensity on Android (no 32-unit clamp)
Choose @react-native-community/blur if:
- You're working with legacy React Native projects (< 0.68)
- You need battle-tested stability over cutting-edge features
- Your app primarily targets iOS (where it performs excellently)
- You can accept limited Android blur quality (overlay-based)
- You prefer community-driven open source projects
Choose expo-blur if:
- You're already committed to the Expo ecosystem
- You're building simple apps with basic blur needs
- You want zero native configuration (Expo managed workflow)
- Bundle size is your primary concern
- You can accept experimental Android blur with potential fallbacks
npm install @sbaiahmed1/react-native-blur
# or
yarn add @sbaiahmed1/react-native-blurRun pod install:
cd ios && pod install- Minimum SDK: API level 24 (Android 7.0)
- Target SDK: API level 35 (Android 15)
- Compile SDK: API level 35 (Android 15)
- Gradle: 8.10.2
- Kotlin: 2.0.21
The Android implementation uses the BlurView library by Dimezis:
implementation 'com.github.Dimezis:BlurView:version-2.0.6'The Android implementation leverages the BlurView library to provide real blur effects:
- Real-time Blur: Uses
RenderEffectBlurfor hardware-accelerated blur rendering - Hardware Acceleration: Utilizes GPU rendering for optimal performance
- Multiple Blur Algorithms: Supports different blur implementations based on device capabilities
- Performance Optimized: Efficient blur rendering with minimal impact on app performance
- Fallback Handling: Gracefully handles devices with limited graphics capabilities
- No Extra Permissions: Does not require additional Android permissions
This library automatically handles Android version compatibility to prevent NoClassDefFoundError issues:
- Android 12+ (API 31+): Uses
RenderEffectBlurfor optimal performance and modern blur effects - Android 10-11 (API 29-30): Automatically falls back to
RenderScriptBlurfor compatibility - Older Android versions: Graceful fallback to semi-transparent overlay when blur is not supported
Note: The library includes automatic API level detection and will choose the appropriate blur algorithm based on the device's Android version. This ensures compatibility across all supported Android versions without requiring any additional configuration.
If you encounter java.lang.NoClassDefFoundError: Failed resolution of: Landroid/graphics/RenderEffect; on Android 10 or 11:
- This is automatically handled - The library now includes fallback mechanisms
- Update to latest version - Ensure you're using the latest version of this library
- Clean and rebuild - Run
cd android && ./gradlew cleanthen rebuild your project
The error occurs because RenderEffect was introduced in Android 12 (API 31), but the library now automatically detects the API level and uses compatible alternatives on older versions.
import React from 'react';
import { View, Text } from 'react-native';
import { BlurView } from '@sbaiahmed1/react-native-blur';
export default function App() {
return (
<View style={{ flex: 1 }}>
<BlurView
blurType="light"
blurAmount={20}
style={{
position: 'absolute',
top: 100,
left: 50,
right: 50,
height: 200,
borderRadius: 20,
}}
>
<Text>Content with blur background</Text>
</BlurView>
</View>
);
}import React from 'react';
import { BlurView } from '@sbaiahmed1/react-native-blur';
function MyComponent() {
return (
<BlurView
blurType="systemMaterial"
blurAmount={50}
reducedTransparencyFallbackColor="#FFFFFF80"
style={{
padding: 20,
borderRadius: 15,
}}
>
<Text>Advanced blur with custom fallback</Text>
</BlurView>
);
}import React from 'react';
import { BlurView } from '@sbaiahmed1/react-native-blur';
function LiquidGlassComponent() {
return (
<BlurView
type="liquidGlass"
glassType="regular"
glassTintColor="#007AFF"
glassOpacity={0.8}
style={{
padding: 20,
borderRadius: 20,
}}
>
<Text>Beautiful liquid glass effect</Text>
</BlurView>
);
}All props are optional and have sensible defaults.
| Prop | Type | Default | Description |
|---|---|---|---|
type |
'blur' | 'liquidGlass' |
'blur' |
The type of effect to apply. Note: 'liquidGlass' is iOS 26+ only, falls back to enhanced blur on Android |
blurType |
BlurType |
'xlight' |
The type of blur effect to apply |
blurAmount |
number |
10.0 |
The intensity of the blur effect (0-100) |
glassType |
GlassType |
'clear' |
The type of glass effect |
glassTintColor |
string |
'clear' |
The tint color for glass effect |
glassOpacity |
number |
1.0 |
The opacity of glass effect (0-1) |
ignoreSafeArea |
boolean |
false |
(iOS only) Controls whether the liquid glass effect should ignore all safe area edges or stops once it reaches it |
isInteractive |
boolean |
true |
(iOS only) Controls whether the liquid glass effect is interactive. When false, the liquid glass effect will not react to touch or movement. Only applicable when type is 'liquidGlass' and iOS 26+. |
reducedTransparencyFallbackColor |
string |
'#FFFFFF' |
Fallback color when reduced transparency is enabled |
style |
ViewStyle |
undefined |
Style object for the blur view |
children |
ReactNode |
undefined |
Child components to render inside the blur view |
Note: The
BlurTypeandGlassTypeare exported types from the library. See Blur Types section below for all available values.
The following blur types are supported:
'light'- Light blur effect'dark'- Dark blur effect'xlight'- Extra light blur effect'extraDark'- Extra dark blur effect
'regular'- Regular blur (iOS 10+)'prominent'- Prominent blur (iOS 10+)'systemUltraThinMaterial'- Ultra thin material (iOS 13+)'systemThinMaterial'- Thin material (iOS 13+)'systemMaterial'- Material (iOS 13+)'systemThickMaterial'- Thick material (iOS 13+)'systemChromeMaterial'- Chrome material (iOS 13+)
On iOS, this component has been completely rewritten using SwiftUI for modern performance and features:
- iOS 26+: Uses native
UIGlassEffectAPI for true liquid glass effects with customizable tint colors and opacity - iOS 13-25: Uses enhanced
UIVisualEffectViewwith precise blur intensity control - Older iOS: Graceful fallback to standard blur effects
- SwiftUI Integration: Leverages SwiftUI's declarative UI for better performance and maintainability
On Android, the component uses the BlurView library to provide real blur effects with hardware acceleration. The implementation supports multiple blur algorithms and gracefully falls back to translucent overlay approximation on devices with limited graphics capabilities.
type="liquidGlass") are iOS 26+ exclusive. On Android, they automatically fall back to enhanced blur with tint overlay to approximate the visual effect.
The component automatically respects the "Reduce Transparency" accessibility setting:
- iOS: When reduce transparency is enabled, the blur view is hidden and a fallback view with solid color is shown
- Android: The fallback color is always used as the base for the blur approximation
You can customize the fallback color using the reducedTransparencyFallbackColor prop.
This package includes full TypeScript definitions:
import { BlurView, BlurType, GlassType, BlurViewProps } from '@sbaiahmed1/react-native-blur';
// BlurType is exported for type checking
const blurType: BlurType = 'systemMaterial';
// GlassType for liquid glass effects
const glassType: GlassType = 'regular';
// BlurViewProps for component props
interface MyComponentProps {
blurProps: BlurViewProps;
}
// Example with all liquid glass properties
const liquidGlassProps: BlurViewProps = {
type: 'liquidGlass',
glassType: 'regular',
glassTintColor: '#007AFF',
glassOpacity: 0.8,
};The package includes a comprehensive example app that demonstrates all blur types, liquid glass effects, and practical use cases. The example app features:
- Main Demo: Interactive blur type selector with live preview
- Liquid Glass Examples: Showcase of iOS 26+ glass effects with customizable properties
- Practical Use Cases: Real-world examples like cards, modals, and overlays
- Comparison Views: Side-by-side comparisons of different effects
To run the example:
cd example
yarn install
# For iOS
yarn ios
# For Android
yarn android- iOS:
- SwiftUI Implementation: Enhanced performance with declarative UI updates
- Liquid Glass (iOS 26+): Hardware-accelerated glass effects with minimal performance impact
- Blur Effects: Native blur effects are hardware-accelerated and performant
- Smart Fallbacks: Automatic degradation ensures smooth performance on older devices
- Android: Real blur effects are hardware-accelerated with fallback to lightweight overlay when needed
- Avoid using too many blur/glass views simultaneously on lower-end devices
- Consider using
reducedTransparencyFallbackColorfor better accessibility - Liquid glass effects automatically fall back to enhanced blur on Android and older iOS versions
- Revolutionary glass effects using Apple's new UIGlassEffect API
- Customizable glass types:
clearandregular - Adjustable tint colors and opacity for stunning visual effects
- Automatic fallback to enhanced blur on older iOS versions and Android
- Complete iOS implementation rewritten using SwiftUI
- Enhanced performance with declarative UI updates
- Better integration with React Native's new architecture
- Improved blur intensity control with precise animation handling
- New liquid glass demonstration section
- Interactive property controls for real-time customization
- Practical use case examples (cards, modals, overlays)
- Comparison views for different effect types
- Full TypeScript support for all new properties
- Improved component layout handling
- Better accessibility support with smart fallbacks
- Enhanced documentation and examples
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Built with create-react-native-library