react-native-view-shot
react-native-view-shot copied to clipboard
[Iphone X] ref capture cause entire screen to scale
bug report
We using this lib to capture card element on screen. On iphone < iphoneX devices it works just fine, but on Iphone X capture method causes strange behavior. The entire screen scales for just a sec and then all is ok.
Before calling capture mehod()
After calling capture method() entire screen scales for just a moment
Tested with ViewShot component and captureRef approaches.
Version & Platform
└── [email protected]
Platform: IOS
Expected behavior: Screen must not jump, scale
Actual behavior: Screen scale for a sec after calling capture method.
Steps to reproduce the behavior
- Create view you want to capture
- Capture it using IphoneX.
Can you tell us more about how you use captureRef? are you using snapshotContentContainer
? thanks
Hi, thx for reply
I tried captureRef approach like this
captureRef(this._frontSide.current, { format: 'jpg', quality: 0.8, });
_frontSide reference created with React.createRef() and attached to View component as ref property.
About snapshotContentContainer
. No, im not using it