0.1.0 • Published 8 years ago
react-native-core-image v0.1.0
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-imageand addRNCoreImage.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNCoreImage.ato 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,
});
}
);0.1.0
8 years ago