[file-system] Add source-view transitions to File.preview()
David Jebing
File.preview()
cannot animate from the thumbnail the user tapped. Apps need a separate native module for this transition.Add an optional
sourceView
: Quick Look zooms from and back to it on iOS; Android scales the viewer app up from its bounds. Missing views keep the default animation. I have a patch for expo-file-system
58.0.13. Would you accept this API?await file.preview({ sourceView: thumbnailRef.current });
Reference demo from expo-file-viewer, not a recording of this patch:
