You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,8 @@ Add text or icon watermark to your images
18
18
19
19
## Installation
20
20
21
+
**RN version < 0.60.0 please use v0.5.2 or older**
22
+
21
23
* npm install react-native-image-marker --save
22
24
* react-native link
23
25
@@ -54,6 +56,7 @@ pod 'RNImageMarker', :path => '../node_modules/react-native-image-marker'
54
56
|`filename`| set filename for the result |
55
57
|`saveFormat`|`png``jpg``base64`|
56
58
|`textBackgroundStyle`| text background style |
59
+
|`maxSize`| default value is 2048, **need RN version >= 0.60.0**, fresco `MaxBitmapSize`[`ImagePipelineConfig.Builder.experiment().setMaxBitmapSize()`](https://github.com/facebook/fresco/blob/08ca5f40cc0b60b4db16d15e45552cafeae39ccb/imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipelineExperiments.java#L282), see [#49](https://github.com/JimmyDaddy/react-native-image-marker/issues/49#issuecomment-535303838)|
57
60
58
61
```typescript
59
62
@@ -83,6 +86,7 @@ export type TextMarkOption = {
83
86
shadowStyle:ShadowLayerStyle,
84
87
textBackgroundStyle:TextBackgroundStyle,
85
88
saveFormat?:ImageFormat,
89
+
maxSize?:number, // android only see #49 #42
86
90
}
87
91
```
88
92
@@ -100,6 +104,7 @@ export type TextMarkOption = {
100
104
|`quality`| image qulaity |
101
105
|`filename` | set filename for the result |
102
106
|`saveFormat`| `png``jpg``base64`, default is `jpg` |
107
+
|`maxSize`| default value is 2048, **need RN version >= 0.60.0**, fresco `MaxBitmapSize` [`ImagePipelineConfig.Builder.experiment().setMaxBitmapSize()`](https://github.com/facebook/fresco/blob/08ca5f40cc0b60b4db16d15e45552cafeae39ccb/imagepipeline/src/main/java/com/facebook/imagepipeline/core/ImagePipelineExperiments.java#L282), see [#49](https://github.com/JimmyDaddy/react-native-image-marker/issues/49#issuecomment-535303838)|
103
108
104
109
```typescript
105
110
exporttypeImageMarkOption= {
@@ -116,6 +121,7 @@ export type ImageMarkOption = {
This library use [Fresco](https://github.com/facebook/fresco) to decode image on Android. You can set your configuration through [Configure Fresco in React Native](https://medium.com/in-the-hudl/configure-fresco-in-react-native-28c2bc7dcc4d)
* If you want to save the new image result to the phone camera roll, just use the [CameraRoll-module from react-native](https://facebook.github.io/react-native/docs/cameraroll.html#savetocameraroll).
0 commit comments