|
@@ -1,11 +1,11 @@
|
1
|
1
|
|
2
|
2
|
# react-native-view-shot ![](https://img.shields.io/npm/v/react-native-view-shot.svg) ![](https://img.shields.io/badge/react--native-%2040+-05F561.svg)
|
3
|
3
|
|
4
|
|
-Snapshot a React Native view and save it to an image.
|
|
4
|
+Capture a React Native view to an image.
|
5
|
5
|
|
6
|
6
|
<img src="https://github.com/gre/react-native-view-shot-example/raw/master/docs/recursive.gif" width=300 />
|
7
|
7
|
|
8
|
|
-> For React Native version between `0.30.x` and `0.39.x`, you should use `react-native-view-shot@1.5.1`.
|
|
8
|
+> iOS: For React Native version between `0.30.x` and `0.39.x`, you should use `react-native-view-shot@1.5.1`.
|
9
|
9
|
|
10
|
10
|
## Usage
|
11
|
11
|
|
|
@@ -62,7 +62,7 @@ takeSnapshot(viewRef, { path: PictureDir+"/foo.png" })
|
62
|
62
|
);
|
63
|
63
|
```
|
64
|
64
|
|
65
|
|
-## Supported views
|
|
65
|
+## Interoperability Table
|
66
|
66
|
|
67
|
67
|
Model tested: iPhone 6 (iOS), Nexus 5 (Android).
|
68
|
68
|
|
|
@@ -138,3 +138,4 @@ react-native link react-native-view-shot
|
138
|
138
|
|
139
|
139
|
- To initial iOS work done by @jsierles in https://github.com/jsierles/react-native-view-snapshot
|
140
|
140
|
- To React Native implementation of takeSnapshot in iOS by @nicklockwood
|
|
141
|
+- To Windows implementation by @ryanlntn
|