https://github.com/opengeekslab/sketchcreate
https://github.com/opengeekslab/sketchcreate
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/opengeekslab/sketchcreate
- Owner: openGeeksLab
- License: mit
- Created: 2017-06-08T11:12:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T14:56:47.000Z (about 9 years ago)
- Last Synced: 2025-01-09T17:54:56.924Z (over 1 year ago)
- Language: Java
- Size: 27.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sketch-editor
A React Native component for touch based drawing supporting iOS and Android.
## Getting Started
1. `$ npm install https://gregory.galushka@gitlab.intecracy.com/LabArchives/sketch-editor.git --save`
2. `$ react-native link sketch-editor`
3. For iOS, open Application Project in Xcode and find `RNSketchView` project under `Libraries` Folder.
* Drag `SketchViewContainer.xib` into your application project, adding a folder reference instead of copying.
## Usage
```javascript
import SketchEditor from 'react-native-sketch-view';
export default class SketchEditorTest extends Component {
render() {
return (
{console.warn(data)}} />
);
}
}
```
## APIs and Props
### APIs
1. `onSave(data)` - Callback when saving is complete.
* `data` Is an object having the following properties -
* `localFilePath` - Local file path of the saved image.
* `imageWidth` - Width of the saved image.
* `imageHeight` - Height of the saved image.