MCPcopy Create free account
hub / github.com/react-native-maps/react-native-maps / takeSnapshot

Function takeSnapshot

src/createFabricMap.tsx:102–108  ·  view source on GitHub ↗
(config: SnapshotOptions)

Source from the content-addressed store, hash-verified

100 }
101 },
102 async takeSnapshot(config: SnapshotOptions) {
103 if (fabricRef.current) {
104 return NativeAirMapsModule.takeSnapshot(node, JSON.stringify(config));
105 } else {
106 throw new Error('takeSnapshot is only supported on iOS with Fabric.');
107 }
108 },
109 async getCamera() {
110 if (fabricRef.current) {
111 return NativeAirMapsModule.getCamera(node);

Callers

nothing calls this directly

Calls 1

takeSnapshotMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…