Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Note: Because native module cannot read the file in JS bundle, file path cannot
## Objects
-------------
### SavePreference object
```javascript
```json5
{
folder: 'RNSketchCanvas',
filename: 'image',
Expand Down Expand Up @@ -312,7 +312,7 @@ Note: Because native module cannot read the file in JS bundle, file path cannot
```

### LocalSourceImage object
```javascript
```json5
{
filename: 'image.png', // e.g. 'image.png' or '/storage/sdcard0/Pictures/image.png'
directory: '', // e.g. SketchCanvas.MAIN_BUNDLE or '/storage/sdcard0/Pictures/'
Expand All @@ -326,7 +326,7 @@ Note: Because native module cannot read the file in JS bundle, file path cannot
| mode? | boolean | Specify how the background image resizes itself to fit or fill the canvas.<br/>Options: `AspectFill`, `AspectFit`, `ScaleToFill` | `AspectFit` |

### CanvasText object
```javascript
```json5
{
text: 'TEXT',
font: '',
Expand Down Expand Up @@ -370,4 +370,4 @@ Check full example app in the [example](./example) folder

## Troubleshooting
-------------
Please refer [here](https://github.com/sourcetoad/react-native-sketch-canvas/wiki/Troubleshooting).
Please refer [here](https://github.com/sourcetoad/react-native-sketch-canvas/wiki/Troubleshooting).
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ PODS:
- React-logger (= 0.74.3)
- React-perflogger (= 0.74.3)
- React-utils (= 0.74.3)
- RNSketchCanvas (1.2.1):
- RNSketchCanvas (1.3.0):
- React
- SocketRocket (0.7.0)
- Yoga (0.0.0)
Expand Down Expand Up @@ -1411,7 +1411,7 @@ SPEC CHECKSUMS:
React-runtimescheduler: 0c80752bceb80924cb8a4babc2a8e3ed70d41e87
React-utils: a06061b3887c702235d2dac92dacbd93e1ea079e
ReactCommon: f00e436b3925a7ae44dfa294b43ef360fbd8ccc4
RNSketchCanvas: cbb5a1939fece7ef21d941f54e7a257b437422ec
RNSketchCanvas: 18f07bb27ea728d477220317c03dcc02d63a9069
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
Yoga: ceb08197dbe332e431b1adff98b9aae41ddc6b3b

Expand Down
2 changes: 1 addition & 1 deletion example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/sourcetoad/react-native-sketch-canvas"
},
"version": "1.2.1",
"version": "1.3.0",
"description": "react-native-sketch-canvas allows you to draw / sketch on both iOS and Android devices and sync the drawing data between users. Of course you can save as image.",
"author": "Terry Lin",
"main": "lib/commonjs/index",
Expand Down
Loading