react-native-local-image-manager
A React Native module for downloading and resizing images natively.
Add it to your project
- Run
npm install react-native-local-image-manager --save
- Add
RCTLocalImageManager.m
to your Xcode project.
Usage
var NativeModules = ;var LocalImageManager = LocalImageManager; // Resize a local imagevar options = uri: '<LOCAL FILE PATH>' width: 100 height: 100 quality: 05 filename: 'myfile.jpg'; LocalImageManager; // Remove the resized local imageLocalImageManager; // Download an image and store it locallyvar options = uri: 'https://www.google.com/images/srpr/logo11w.png' filename: 'google_logo.png'; LocalImageManager;