react-native-view-shot icon indicating copy to clipboard operation
react-native-view-shot copied to clipboard

can not capture ImageBackground in screen shot

Open treesen opened this issue 5 years ago • 4 comments

feature request

can not capture ImageBackground in screen shot when viewshot includes an ImageBackground

bug report

Version & Platform

npm ls react-native react-native-view-shot #<- PASTE CMD RESULT IN HERE

Platform: Android

Expected behavior

Actual behavior

Steps to reproduce the behavior

treesen avatar Jun 07 '20 06:06 treesen

you can try after image onLoad, such as <ImageBackground source={xxx} onLoad={() => { this._onImageLoad() }} /> _onImageLoad = () => { this.refs.viewShot.capture().then(uri => { console.log("d-----------------> ", uri); this.setState({ uri: uri }) }) };

kmyw avatar Jun 23 '20 09:06 kmyw

+1

trungphotobank avatar May 19 '21 10:05 trungphotobank

Any update on this issue ???

ursnj avatar Dec 08 '21 19:12 ursnj

wondering also. is this a bug or is there a fix?

bruteforks avatar Apr 29 '23 22:04 bruteforks