README
react-native-core-image
react-native-core-image is currently only supported on iOS. This is meant to expose the Core Image library built into iOS.
Getting started
$ npm install react-native-core-image --save
Mostly automatic installation
$ react-native link react-native-core-image
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-core-image
and addRNCoreImage.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNCoreImage.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Usage
import CoreImage from "react-native-core-image";
CoreImage.processBlurredImage(localFileUrl, blurRadius, (err, imageFileUrl) => {
this.setState({
imageFileUrl,
});
}
);