|
|
|
|
34
|
|
34
|
|
35
|
- **`view`** is a reference to a React Native component.
|
35
|
- **`view`** is a reference to a React Native component.
|
36
|
- **`options`** may include:
|
36
|
- **`options`** may include:
|
37
|
- - **`width`** / **`height`** *(number)*: the width and height of the image to capture.
|
|
|
|
|
37
|
+ - **`width`** / **`height`** *(number)*: the width and height of the final image (resized from the View bound. don't provide it if you want the original pixel size).
|
38
|
- **`format`** *(string)*: either `png` or `jpg`/`jpeg` or `webm` (Android). Defaults to `png`.
|
38
|
- **`format`** *(string)*: either `png` or `jpg`/`jpeg` or `webm` (Android). Defaults to `png`.
|
39
|
- **`quality`** *(number)*: the quality. 0.0 - 1.0 (default). (only available on lossy formats like jpeg)
|
39
|
- **`quality`** *(number)*: the quality. 0.0 - 1.0 (default). (only available on lossy formats like jpeg)
|
40
|
- **`result`** *(string)*, the method you want to use to save the snapshot, one of:
|
40
|
- **`result`** *(string)*, the method you want to use to save the snapshot, one of:
|