Skip to content

Instantly share code, notes, and snippets.

@iregina
Created April 22, 2025 17:37
Show Gist options
  • Save iregina/764e30981cc53641dd914c0061f28378 to your computer and use it in GitHub Desktop.
Save iregina/764e30981cc53641dd914c0061f28378 to your computer and use it in GitHub Desktop.
how we capture the snapshot on iOS - Shopify MobileBridge
final class TransportableView: RCTView {
func takeSnapshot() {
removeSnapshot()
snapshot = snapshotView(afterScreenUpdates: false)
if let snapshot {
addSubview(snapshot)
snapshot.frame = frame
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment