Giter VIP home page Giter VIP logo

Comments (12)

ihor avatar ihor commented on May 18, 2024

I'm having the same issue. Have you found any solution?

from react-native-view-shot.

fuatsengul avatar fuatsengul commented on May 18, 2024

Sorry, I was working on another part of the app at the moment, please let me know if you find a solution for that. Thanks

from react-native-view-shot.

ihor avatar ihor commented on May 18, 2024

Well, rendering off-screen in a regular View as suggested here #31 works.

from react-native-view-shot.

gre avatar gre commented on May 18, 2024

mmh yeah so snapshotContentContainer is supposed to solve that. are you screenshoting from the scrollview ref?

from react-native-view-shot.

gre avatar gre commented on May 18, 2024

maybe there is a bug in the feature #47 (comment)

from react-native-view-shot.

ihor avatar ihor commented on May 18, 2024

I see the same as described in #47. The content is stretched but cut.

from react-native-view-shot.

gre avatar gre commented on May 18, 2024

I guess the bug is only on iOS, probably around these lines:

if (snapshotContentContainer) {
// Save scroll & frame and set it temporarily to the full content size
savedContentOffset = scrollView.contentOffset;
savedFrame = scrollView.frame;
scrollView.contentOffset = CGPointZero;
scrollView.frame = CGRectMake(0, 0, scrollView.contentSize.width, scrollView.contentSize.height);
}

would you like to provide a PR to fix it? (I have bad connectivity right now in China, this will need to wait 2 more weeks otherwise)

from react-native-view-shot.

sachinB94 avatar sachinB94 commented on May 18, 2024

Hey, Any update on this? Testing on iOS simulator, facing the same issue.

from react-native-view-shot.

gre avatar gre commented on May 18, 2024

do you want to try a fix and submit a PR, otherwise a snippet reproducing the problem would be good, i'm not sure if the bug is reproducible in https://github.com/gre/react-native-view-shot-example already

from react-native-view-shot.

gre avatar gre commented on May 18, 2024

closing as I can't reproduce it. if you can and want to provide a fix, please provide a PR.

from react-native-view-shot.

MiteshJabuani avatar MiteshJabuani commented on May 18, 2024

scroll view content no of items and capture a single image of the scroll view. get image Like below...
zoGHk

from react-native-view-shot.

MiteshJabuani avatar MiteshJabuani commented on May 18, 2024

scrollview inside flatlist then capture screenshot
<Scrollview
<View
contents....
</View
<Flatlist
.........
/>
</Scrollview

from react-native-view-shot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.