React Native Create Blur Background Image Effect in Android iOS App

Blur image effect also known as Gaussian Blur Smoothing Image Effect can create in react native application using blurRadius={} prop. This prop accepts value in Number format and permit us to reduce and change the Image Noise and make the image with blurry effect. So in this tutorial we would going to make a react native app with Blur Background Image Effect. We are using the Image component as Root View so you can put all of your children component inside Image Component.

Below is the sample Guitar image used in this tutorial :

Contents in this project Create Blur Background Image Effect in React Native App:

1. Import StyleSheet, Image and Platform component in your project.

2. Create Image component inside render’s return block. We would load image from our website using HTTP URL. You can set image from both Local and Online URL.

NoteInside the blurRadius={} prop we are first checking the OS platform version using Platform API. If the application run in iOS application then it will set blurRadius={} value as 10 and if app opens in Android then it will set blurRadius={} value as 5. I am doing this because with the same value there are some difference in blur effect in both Android and iOS devices.

3. Create Style for Image component.

4. Complete source code for App.js File :

Screenshot in Android app:

Screenshot in iOS Application:

Blur Background Image Effect

Leave a Reply

Your email address will not be published. Required fields are marked *