All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Added the ability to draw a small dot by just tapping the screen without moving your finger. (
onChange
is then called as usual but the drawing actually changes, which fixes #25. Kudos to @lucastrazzullo for helping me!)
- Added the
requiresMainQueueSetup()
method to fix a warning on RN 0.49+. - Fixed #37: Preventing a crash when trying to save an image without drawing first.
- Fixed compatibility with RN 0.49 by removing references to View.propTypes.style (Thanks @hnryjms!).
- Added backward compatibility for React Native < 0.40 (Thanks @peacechen!).
- Breaking change: Changed iOS native headers for compatibility with React Native >= 0.40.
- The
onReset
event has been renamedonClear
. - The
saveImage
method has been renamedsave
and doesn't require any argument. - The README.md has been updated with more documentation.
- Created an
examples
folder.
- Supports of
fillColor="transparent"
attribute value. RequiresimageType="png"
to export a transparent image (Thanks @aprihodko @vccabral!).
- Added
imageType
attribute to choose the image type to export: 'png' or 'jpg' (Thanks @blargity!).
- Added
clear
method to reset the drawing from outside (Thanks @blargity!).
- Fix to make borderRadius property on the sketch view working (Thanks @blargity!).
- Corrected
PropTypes
import in index.ios.js - Removed from 'react-native' package...
- Corrected
onReset
callback: CallonUpdate
with a null value, then the onReset property.
- Updated package.json with new keywords
- Fix: Replaced a custom UIColor category with RCTConvert (To prevent linking issues...)
- The sketch frame is not static anymore (height is 200px by default)
- The clear button is now on the top left corner. (will be hopefully removed in the future)
- Completed README.md with more informations
- Property
fillColor
(hexa string) to change the background color of the canvas - Property
strokeColor
(hexa string) to change the stroke color - Property
strokeThickness
(number) to change the stroke thickness - Method
saveImage
(async) which resolves with the drawing image path.
- Initial commit (static sketch frame size & background)