Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-image-blur-view

chetan-applaunch26MIT0.1.19TypeScript support: included

this will helps displaying image view having capabilites to blur the image. Currently it supports iOS platform.

react-native, ios, android, blur, image, camera, picker, objective c

readme

react-native-image-blur-view

this will helps displaying image view having capabilites to blur the image. Currently, it is made for iOS only.

Installation

npm install react-native-image-blur-view

then link the package

npx react-native link

and then, do the "pod install"

Usage

import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import ImageBlurViewManager from 'react-native-image-blur-view';
import { NativeAppEventEmitter } from 'react-native';

export default class App extends Component {
  constructor(props) {
    super(props);
    this.state = {

    };
  }

  componentDidMount(){
      var blurEventListener = NativeAppEventEmitter.addListener(
      'BlurImageEvent',
      (path) => console.log(path)
    );

  }

  render() {

    return (
       <View style={styles.container}>
             <ImageBlurViewManager imagePath="/private/var/mobile/Containers/Data/Application/C4486D89-689C-40B0-935A-BDCF78E6CA0F/tmp/react-native-image-blur-view/F1F72ECB-62DB-4843-A1BA-7B7EEB46D986.jpg" style={styles.box} />
    </View>
    );
  }
}
const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  box: {
    width: 400,
    height: 800,
    marginVertical: 2,
  },
});

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT