@lukastran/react-native-blur-view

0.1.2 • Public • Published

react-native-blur-view

A lightweight yet powerful React Native package for applying a native blur (frosted glass) effect to any view on both iOS and Android.

Installation

npm install react-native-blur-view

or

yarn add react-native-blur-view

Make sure you also have react-native-webview installed in your project:

npm install react-native-webview

or

yarn add react-native-webview

✨ Features

  • No native code or platform-specific setup
  • Fully customizable background color (rgba)
  • Optional border radius for rounded blur overlays
  • Supports child content over the blurred background
  • Compatible with both Android and iOS

🚀 Why use this?

Native blur implementations often require linking native modules or configuring platform-specific code. This component offers a JS-only alternative using CSS backdrop-filter (when supported), wrapped inside a WebView, which works reliably across platforms.

🧪 Example

import BlurView from 'react-native-blur-overlay';

<BlurView
  backgroundColor="rgba(255, 255, 255, 0.5)"
  borderRadius={16}
  style={{ width: 200, height: 100 }}
>
  <Text>Your content here</Text>
</BlurView>;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i @lukastran/react-native-blur-view

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

13.8 kB

Total Files

15

Last publish

Collaborators

  • lukastran