# gre/react-native-view-shot

Snapshot a React Native view and save it to an image

Repository: https://github.com/gre/react-native-view-shot
Canonical: https://ross.abutalabs.com/products/react-native-view-shot
Homepage: https://github.com/gre/react-native-view-shot-example
Language: TypeScript
License: MIT
License Family: permissive
Topics: react-native, snapshot, capture
Last push: 2026-08-02T12:52:20+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 89, longevity 100
- inputs: {"age_days": 3662, "days_push": 31, "days_rel": 74, "gap_med": 1, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2947, forks 371 (observed 2026-08-28T04:07:31.803033+00:00)

## What it is
A React Native library that captures a view and saves it as an image, supporting both old and new architectures (Fabric + TurboModules). It provides a declarative ViewShot component and an imperative captureRef API with options for format, quality, and file naming.

## Use cases
- take a screenshot of a react native view
- save a react native component as an image
- capture scrollview content to a png or jpg
- share a snapshot of the app screen
- rasterize a view for image export
- capture a view automatically on mount

## When to choose
- you need to export or share a snapshot of a React Native view
- you want a maintained library supporting React Native 0.76+ and the new architecture
- you use Expo and need autolinking-compatible view capture

## When to avoid
- you need full-screen screenshots including native UI outside your views
- you are not building with React Native
- you need video or animated capture rather than static images

## Facets
- artifact type: library
- maturity: active
- function: image-processing, ui-components
- domain: mobile-development, frontend, image-processing
- platform: cross-platform
- tags: react-native, screenshot, view-snapshot, rasterize, expo, ios, android, mobile

## Member repositories
- gre/react-native-view-shot (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:31.803033+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:32:46.418480+00:00, confidence not recorded.
  - readme: https://github.com/gre/react-native-view-shot (fetched 2026-08-28T04:07:31.803033+00:00, sha 172b0d0f1a3c)
  - homepage: https://github.com/gre/react-native-view-shot-example (fetched 2026-08-29T09:48:20.536831+00:00, sha cf76e535176c)
  - registry_npm: https://registry.npmjs.org/react-native-view-shot (fetched 2026-08-29T09:48:20.546552+00:00, sha 73d10baf7d58)
- Data as of 2026-08-30T08:39:29.467469+00:00.
