New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-image-blur

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-image-blur

react-native-image-blur is a wrapper for react-native-blur. Provide image blurring.

latest
Source
npmnpm
Version
1.3.2
Version published
Maintainers
1
Created
Source

react-native-image-blur

react-native-image-blur is a wrapper for react-native-blur. Provide image blurring.

Installation

npm install react-native-blur
npm install react-native-image-blur

react-native link react-native-blur

Android: Add the following to android/app/build.gradle

android {
    // make sure to use 23.0.3 instead of 23.0.1
    buildToolsVersion '23.0.3'

    // ...
    defaultConfig {
        // Add these lines below the existing config
        renderscriptTargetApi 23
        renderscriptSupportModeEnabled true
    }
}

Include the library in your code:

import ImageBlur from 'react-native-image-blur';

<ImageBlur
    source={{ uri: 'xxx' }}
    style={{ width: '100%', height: 240 }}
    blurRadius={6}>
    <Text style={{ color: '#fff', fontSize: 32 }}>Hello</Text>
</ImageBlur>

props

nametypedescription
imageStyleobjectimage style.
contentStyleobjectchildren component style.
sourceobjectimage source.
blurTypestringxlight、light、dark. default is dark.
blurRadiusnumber(only android) range: 0 - 25, default is 8.
downsampleFactornumber(only android) range: > 0, default is null.
blurAmountnumberrange: 0 - 100, default is 10.
overlayColorstring(only android) default is null.

Keywords

image-blur

FAQs

Package last updated on 09 Jan 2019

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