⚠️ Package isn’t published to npm yet and probably won’t be. It uses Apple’s private API and might be the reason for App Store rejection. Use it at your own risk.
⚠️ iOS only
React Native blur view that extends standard iOS UIVisualEffectView. Besides regular blur styles (light, dark, etc.)
it unlocks control over blur and saturation intensity, and provides two additional styles:
- variable: blur with gradient mask and customizable gradient points
- plain: clean gaussian blur without any additional effects (saturation, tint, grain etc.)
Screen.Recording.2024-08-11.at.20.24.26.mov |
Screen.Recording.2024-08-11.at.19.46.48.mov |
|---|
If you still want to use it, you can install it directly from GitHub. Add following to your package.json:
"dependencies": {
"react-native-blur-view": "https://github.com/kirgudkov/react-native-blur-view.git"
}run yarn install or npm install and then run pod install
import { BlurView } from 'react-native-blur-view';
<View style={styles.container}>
<Text>Blurred content</Text>
<BlurView
style={StyleSheet.absoluteFill}
/>
</View>blurStyle?: plain | extraLight | light | dark | regular | prominent- default:
regular
- default:
blurIntensity?: [0.0, 100.0]- default:
10
- default:
saturationIntensity?: [0.0, 3.0]- default:
1
- default:
fadePercent?: [0.0, 1.0]- default:
0
- default:
fadeStyle?: bottom | top | left | right- default:
top
- default:
style?: StyleProp<ViewStyle>- default:
undefined
- default: