Parcourir la source

add support table in readme

Gaëtan Renaudeau il y a 8 ans
Parent
révision
d65e55a261
1 fichiers modifiés avec 15 ajouts et 3 suppressions
  1. 15
    3
      README.md

+ 15
- 3
README.md Voir le fichier

@@ -62,11 +62,24 @@ takeSnapshot(viewRef, { path: PictureDir+"/foo.png" })
62 62
 );
63 63
 ```
64 64
 
65
+## Supported views
66
+
67
+Model tested: iPhone 6 (iOS), Nexus 5 (Android).
68
+
69
+| System             | iOS                | Android           |
70
+|--------------------|--------------------|-------------------|
71
+| View,Text,Image,.. | YES                | YES               |
72
+| WebView            | YES                | NO (crash!)       |
73
+| gl-react           | YES                | NO (empty)        |
74
+| react-native-video | NO                 | NO                |
75
+| react-native-maps  | YES                | [NO](https://github.com/gre/react-native-view-shot/issues/36) |
76
+
77
+
65 78
 ## Caveats
66 79
 
67 80
 Snapshots are not guaranteed to be pixel perfect. It also depends on the platform. Here is some difference we have noticed and how to workaround.
68 81
 
69
-- Support of special components like Video / GL views remains untested.
82
+- Support of special components like Video / GL views is not guaranteed to work. In case of failure, the `takeSnapshot` promise gets rejected (the library won't crash).
70 83
 - It's preferable to **use a background color on the view you rasterize** to avoid transparent pixels and potential weirdness that some border appear around texts.
71 84
 
72 85
 ### specific to Android implementation
@@ -112,8 +125,7 @@ react-native link react-native-view-shot
112 125
 
113 126
 #### Windows
114 127
 
115
-No support yet. Feel free to PR.
116
-
128
+Stay tuned, https://github.com/gre/react-native-view-shot/pull/45 will be merged soon!
117 129
 
118 130
 ## Thanks
119 131