Chuli jimmi Manurung
1fe5b4cda3
fixed androidx annotation and create example view shoot scrollview
5 년 전
Oleksandr Kucherenko
2a865fa1db
fixed bug with child views transformation loss
6 년 전
Oleksandr Kucherenko
b7e9d6eae4
fix the child draw matrix/transformation rendering issues
6 년 전
Oleksandr Kucherenko
a999019bc2
implemented super fast way of screenshot making. removed places that slow down screenshot making and delivery to the react side.
6 년 전
Ardavan Kalhori
bae74096f0
Fixed the compile error
extension is final and cannot be changed.
6 년 전
Ardavan Kalhori
69539bfb45
Simplified the null check logic
6 년 전
Ardavan Kalhori
6942e05c65
fixed the base64 MIME type when JPG is chosen
valid MIME type for JPEG / JPG images is "image/jpeg"
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#Image_types
This was causing Android not to recognize the screenshots taken by this library
6 년 전
takeshi kato
cf16f2389e
add null check
6 년 전
Jeremy Green
4c9b57e1c3
Make all ViewShot fields final.
6 년 전
Jeremy Green
0a4efe543b
Close android OutputStreams before resolving Promise. Otherwise, buffers might not be flushed soon enough.
6 년 전
Henley Kuang
e9ad6aaf77
Update ViewShot.java
6 년 전
Henley Kuang
896dbf95fb
Fix psitioning of TextureView elements relative to target element
6 년 전
foxmicha
8df4c24ee3
Update Android functionality to provide the "captureScreenshot". This will capture the entire screen and all the views currently displayed. This performs a native screen capture so a ref tag is not required.
7 년 전
Gaëtan Renaudeau
fe74b433c8
drop deprecated, introduce ViewShot component, rename APIs
7 년 전
Gaëtan Renaudeau
63d2819585
deprecate "path", replace "file" by "tmpfile"
ctx https://github.com/gre/react-native-view-shot/issues/67
7 년 전
Bardolos
c3c804723a
optimise imports
7 년 전
Bardolos
9a56ad99da
Add support for TextureViews as per issue #57
As per owner's suggestion:
Firstly get all children recursively;
Then check if each child is an instance of TextureView with instanceof;
Make sure child knows it's not opaque and get its bitmap into a buffer;
Draw said bitmap into the current canvas.
This assumes that these TextureView elements are ordered in the tree.
7 년 전
Gaëtan Renaudeau
bad64c7a2c
fixes #75
7 년 전
聂先生
dd394a1356
Update ViewShot.java
7 년 전
Gaëtan Renaudeau
9d5903316c
wip implementing dirs
8 년 전
Manwei
910edd6457
Modify
8 년 전
Manwei
f7be9ebf93
Fix ScrollView Snapshots
#34
1.evaluated the real height when the isScrollView is true
2.upgrade README.md
8 년 전
Gaëtan Renaudeau
41c357dfa8
Revert "Convert image to data in a separate thread"
This reverts commit 45061cc62a .
8 년 전
LionelWei
45061cc62a
Convert image to data in a separate thread
8 년 전
Gaëtan Renaudeau
6f631dedff
fixes https://github.com/gre/react-native-view-shot/issues/14
8 년 전
Gaëtan Renaudeau
70318c2c22
Revert "Fix the Android implementation to return a file path, not an Uri path"
I was actually wrong on this.
Fixes #15
my problem i was having is you can't do new File(uri) but it's normal, it's not a file path, it's a Uri,
if you are sure you have a file uri, you can do new File(Uri.parse(uri).getPath()) but I guess best is to get a input stream from the Uri or keep using Uri..
This reverts commit a85cf9629a .
8 년 전
Gaëtan Renaudeau
a85cf9629a
Fix the Android implementation to return a file path, not an Uri path
8 년 전
Gaëtan Renaudeau
6089cb703d
cleanup deadcode
8 년 전
Gaëtan Renaudeau
12b23da501
Fixes https://github.com/gre/react-native-view-shot/issues/13
8 년 전
Gaëtan Renaudeau
fe167f0a25
Android: print stack trace on exception in generic failure case
8 년 전
Gaëtan Renaudeau
cadb795ac5
Introduce a result option, one of file|base64|data-uri & Fixes #1
8 년 전
Steve Kellock
2a42744e73
Invalidates the Android view cache after each shot.
8 년 전
Steve Kellock
7e24f3465c
Adds base64 support.
8 년 전
Gaëtan Renaudeau
f4fe9bfaee
init
8 년 전