npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-progressive-blur-view

v1.0.6

Published

A progressive blur view component for React Native

Downloads

1,072

Readme

react-native-progressive-blur-view

npm version npm downloads license

A progressive blur view component for React Native that combines blur effects with gradient masks for smooth transitions.

Installation

npm install react-native-progressive-blur-view

Dependencies

This library depends on the following packages that need to be installed separately:

npm install @react-native-masked-view/masked-view @react-native-community/blur react-native-linear-gradient

iOS Setup

For iOS, you need to run:

cd ios && pod install

Android Setup

For Android, make sure to follow the setup instructions for:

Usage

import { ProgressiveBlurView } from 'react-native-progressive-blur-view';

// ...

<ProgressiveBlurView
  style={{ flex: 1 }}
  blurType="light"
  blurAmount={10}
>
  <Text>Your content here</Text>
</ProgressiveBlurView>

API

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | blurType | 'dark' \| 'light' \| 'xlight' \| 'prominent' \| 'regular' \| 'extraDark' \| ... | 'light' | The blur effect type. Extended iOS types available. | | blurAmount | number | 10 | The intensity of the blur effect | | opacities | ReadonlyArray<number> | undefined | Array of opacity values (0-1) that get converted to rgba colors for the gradient | | maskElement | React.ReactElement | undefined | Custom mask element to replace the default LinearGradient | | start | { x: number; y: number } | { x: 0, y: 0 } | Start coordinates for the gradient (0-1 range) | | end | { x: number; y: number } | { x: 0, y: 1 } | End coordinates for the gradient (0-1 range) | | locations | ReadonlyArray<number> | undefined | Array defining gradient color stop positions (0-1 range) | | reducedTransparencyFallbackColor | string | undefined | Fallback color when reduced transparency is enabled (iOS) | | blurRadius | number | undefined | Radius of the blur effect (Android) | | downsampleFactor | number | undefined | Factor to downsample the image before blurring (Android) | | overlayColor | string | undefined | Color overlay on top of the blur (Android) | | enabled | boolean | undefined | Whether the blur effect is enabled (Android) | | autoUpdate | boolean | undefined | Whether to automatically update the blur (Android) | | style | ViewStyle | undefined | Style for the container | | children | ReactNode | undefined | Content to be rendered inside the blur view |

All props from BlurView (except style) and LinearGradient (except style and colors) are supported and passed through to their respective components.

Advanced Usage Examples

Custom Gradient with Opacity Array

<ProgressiveBlurView
  style={{ flex: 1 }}
  blurType="light"
  blurAmount={15}
  opacities={[0, 0.2, 0.5, 0.8, 1]}
  locations={[0, 0.3, 0.5, 0.7, 1]}
>
  <Text>Content with custom gradient opacity stops</Text>
</ProgressiveBlurView>

Diagonal Gradient

<ProgressiveBlurView
  style={{ flex: 1 }}
  blurType="dark"
  blurAmount={12}
  start={{ x: 0, y: 0 }}
  end={{ x: 1, y: 1 }}
  opacities={[0, 0.6, 1]}
>
  <Text>Diagonal blur gradient</Text>
</ProgressiveBlurView>

Horizontal Gradient

<ProgressiveBlurView
  style={{ flex: 1 }}
  blurType="prominent"
  blurAmount={18}
  end={{ x: 1, y: 0 }}
  opacities={[0, 0.1, 0.3, 0.7, 0.9, 1]}
  locations={[0, 0.2, 0.4, 0.6, 0.8, 1]}
>
  <Text>Horizontal multi-stop gradient</Text>
</ProgressiveBlurView>

Custom Mask Element

import LinearGradient from 'react-native-linear-gradient';

<ProgressiveBlurView
  style={{ flex: 1 }}
  blurType="light"
  blurAmount={20}
  maskElement={
    <LinearGradient
      style={StyleSheet.absoluteFillObject}
      colors={["rgba(0,0,0,0)", "rgba(0,0,0,0.3)", "rgba(0,0,0,1)"]}
      locations={[0, 0.5, 1]}
      start={{ x: 0.5, y: 0.5 }}
      end={{ x: 1, y: 1 }}
    />
  }
>
  <Text>Custom radial-like gradient mask</Text>
</ProgressiveBlurView>

Example

See the example folder for a complete example app.

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