react-native-image-blur is a wrapper for react-native-blur. Provide image blurring.
npm install react-native-image-blur
react-native-image-blur is a wrapper for react-native-blur. Provide image blurring.
bash
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
`js
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:
`js
import ImageBlur from 'react-native-image-blur';
source={{ uri: 'xxx' }}
style={{ width: '100%', height: 240 }}
blurRadius={6}>
Hello
``