[ Package conformance ]
Media · >=2.2.0
react-native-create-thumbnail
native-seam only — upstream entry is `const { create } = NativeModules.CreateThumbnail; export default CreateThumbnail` and runs from the bundle. sootsim provides the CreateThumbnail TurboModule with browser-equivalent frame extraction: loads the source as an HTMLVideoElement, seeks to the requested timeStamp, paints the frame onto a canvas at the requested maxWidth/maxHeight (aspect-preserving downscale) and encodes as data:image/<format>. caches by cacheName (or url+timestamp) so re-requests return the same data URI without re-decoding. apps that fetch from a CORS-friendly source get real thumbnail bytes; hostile-origin sources fall through to a shape-correct placeholder.82%
API coverage
No visual conformance cases have been published for this package yet. The registry summary below describes what the compat layer implements.
Working (12)
CreateThumbnail native module create() with HTMLVideoElement + canvas-backed real frame extractionurl/timeStamp/format/cacheName/maxWidth/maxHeight/headers optionsaspect-preserving downscaleimage/jpeg + image/png encodingcache-by-name reuseshape-correct {pathsizemimewidthheight} resultheaders via fetch+objectURL when presentgraceful fallback when DOM video/canvas isn’t available
Missing (6)
native cache file persistence (data URI cache onlynot /Caches/thumbnails on disk)AVAssetImageGenerator exact frame selection / time-tolerance semanticsAndroid onlySyncedFrames behaviorcache directory size cleanupnon-DOM worker video decode