Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluegrassdigital/react-native-image-rotate
https://github.com/bluegrassdigital/react-native-image-rotate
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bluegrassdigital/react-native-image-rotate
- Owner: bluegrassdigital
- License: mit
- Created: 2023-10-31T15:17:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-27T13:58:46.000Z (5 months ago)
- Last Synced: 2024-08-27T14:38:00.027Z (5 months ago)
- Language: Java
- Size: 184 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-image-rotate
This project supports react-native >= 0.40.0
This module is meant to be used together with react-native's
[ImageEditor](https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageEditor.js)
to create full-featured crop tool## Installation
First install the package via npm
`$ npm install react-native-image-rotate@https://github.com/barrsan/react-native-image-rotate`
then use [rnpm](https://github.com/rnpm/rnpm) to link native libraries
`$ react-native link react-native-image-rotate`
## Usage
Package exposes only one class that contains one method with following signature:
```javascript
static rotateImage(
uri: string,
angle: number,
success: (uri: string) => void,
failure: (error: Object) => void
) : void
```## Example
Check the [Example directory](https://github.com/dgladkov/react-native-image-rotate/tree/master/Example)
for a working iOS/Android example## License
MIT