A React Native module that can create rotate versions of local images.
First, install the package:
npm install react-native-image-rotation
Then, follow those instructions:
For react-native >= v0.15, this command will do it automatically:
react-native link react-native-image-rotation
var ImageRotation = require('react-native-image-rotation');
ImageRotation.createRotationImage(imageUri).then((rotationImageUri) => {
// rotationImageUri is the URI of the new image that can now be displayed, uploaded...
});
The promise resolves with a string containing the uri of the new file.