Questions tagged [react-native-view-shot]

19 questions
0
votes
1 answer

Share a screenshot and a text message (or a link), using react-native and expo

I'm trying to have a share button, that would take a screenshot of the current place in the app, and share it to social platforms along with some text or a link. I've tried using expo-sharing, react-native-view-shot, and expo-file-system, and…
0
votes
1 answer

White background in react-native-view-shot

I am using react-native-view-shot to save a screenshot of a view, whose height is not initially defined, as I am using padding and setting the height of the view using the onLayout method. The problem is that, when the view has an initial fixed…
PietroPutelli
  • 482
  • 4
  • 20
0
votes
0 answers

Error: Rendered more hooks than during the previous render. when using captureRef

I'm trying to take a shot of my scrollview so I can share it later on. For this I'm using https://github.com/gre/react-native-view-shot#capturerefview-options-lower-level-imperative-api I never used refs in react-native, so I'm a bit confused on…
1
2