react-native-core-image is currently only supported on iOS. This is meant to expose the Core Image library built into iOS.
$ npm install react-native-core-image --save
$ react-native link react-native-core-image
- 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
)<
import CoreImage from "react-native-core-image";
CoreImage.processBlurredImage(localFileUrl, blurRadius, (err, imageFileUrl) => {
this.setState({
imageFileUrl,
});
}
);