Lines Matching refs:screenshot
2 title: Take a screenshot
12 In this chapter, we will learn how to take a screenshot using a third-party library and save it on …
13 …-native-view-shot`](https://github.com/gre/react-native-view-shot) that allows taking a screenshot,
68 To allow the user to take a screenshot within the app, we'll use [`react-native-view-shot`](https:/…
82 …d called `captureRef()` that captures a screenshot of a `<View>` in the app and returns the URI of…
111 …in the above snippet because this `<View>` component is used to take a screenshot of the backgroun…
112 The rest of the contents of the app screen (such as buttons) are not part of the screenshot.
118 ## Capture a screenshot and save it
120 Now we can capture a screenshot of the view by calling the `captureRef()` method from `react-native…
121 …ument where we can pass the `width` and `height` of the area we'd like to capture a screenshot for.
124 The `captureRef()` method returns a promise that fulfills with the URI of the captured screenshot.
126 which will save the screenshot to the device's media library.
131 label="Take a screenshot"
132 templateId="tutorial/07-screenshot/App"
154 /* @info Replace the comment with the code to capture the screenshot and save the image. */
179 <Video file="tutorial/saving-screenshot.mp4" />