{"repo":"MarshallBear1/react-native-system-thumbnails","free":true,"listed":false,"github":"https://github.com/MarshallBear1/react-native-system-thumbnails","clone":"git clone https://github.com/MarshallBear1/react-native-system-thumbnails.git","description":"Native iOS and Android system thumbnails for React Native, with caching, cancellation, and icon fallbacks.","language":"Kotlin","stars":102,"topics":["android","ios","new-architecture","react-native","thumbnails","turbo-module"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-system-thumbnails Generate the thumbnail the operating system would show for a local file — or fall back to a useful file icon — through one typed React Native API. The library uses Quick Look on iOS and native content, image, PDF, and media APIs on Android. It does not download remote files and does not move file bytes through JavaScript. Native demo iOS Android ------------------------------------------------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------- The demo only shows PASS after the generated thumbnail renders, the cache hits, strict fallback rejects an icon-only file, icon fallback decodes, and the managed cache files are removed. Why this exists React Native has good libraries for video frames and separate libraries for PDF pages. Apps that display mixed attachments still have to combine those libraries, special-case Android content:// URLs, and invent a fallback for documents the device cannot preview. react-native-system-thumbnails provides one result shape for images, PDFs, videos, audio artwork, text and office documents, provider-backed content, and unknown files: - native previews when the OS can render them; - a deterministic file icon when it cannot; - bounded output dimensions; - PNG or JPEG output; - source-aware native caching; - cancellation with AbortSignal ; - stable, typed errors. Requirements - Re","default_branch":null,"files":null,"tree":[],"storefront":"/r/MarshallBear1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MarshallBear1/react-native-system-thumbnails/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}