Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-blur-effect

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-blur-effect

blur effect library for react-native

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
decreased by-36.79%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-blur-effect

Install

$ yarn add react-native-webview react-native-blur-effect

Usage

BlurView covers parent element area

import BlurView from 'react-native-blur-effect';
import { View, Text } from 'react-native';

const BlurExampleComponent = () => {
  return (
    <View>
      <Text>First Text Element</Text>
      <BlurView backgroundColor="rgba(255, 255, 255, 0.1)" blurRadius={1.5} />
      <Text>Second Text Element</Text>
    </View>
  );
};

Precautions

'BlurView' is using webview.

When using 'WebView' within 'ScrollView', there is a problem of crashing if it reach to the end of the scroll.
react-native-webview issue link

➡️ Fixed at react-native-webview ^13.6.2

It is expected to be resolved in 'PR' below If you use 'patch-package', you can use it without crash.
#2874

➡️ Fixed at react-native-webview ^13.6.2

About this library

React Native currently does not provide a way to use the Blur effect. Here are some ways to try.

  • with react-native-blur
  • with expo-blur
  • with imageBackground + transparent
  • with react-native-svg
  • with react-native-linear-gradient
  • with react-native-reanimated
  • with react-native-skia

Among the above items,
can not find a case where blur effect was available
without any problems on both aos/ios platforms.

Please share if there is a better alternative than using webview.

Reference

https://gist.github.com/dutradotdev/50c82763fc621ab3c1bd5ba02180ce0d

Keywords

FAQs

Package last updated on 19 Nov 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc