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

Function addGoogleMapsAppDelegateImport

plugin/src/ios.ts:47–58  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

45};
46
47export function addGoogleMapsAppDelegateImport(src: string): MergeResults {
48 const newSrc = ['#if canImport(GoogleMaps)', 'import GoogleMaps', '#endif'];
49
50 return mergeContents({
51 tag: 'react-native-maps-import',
52 src,
53 newSrc: newSrc.join('\n'),
54 anchor: /(@main|@UIApplicationMain)/,
55 offset: 0,
56 comment: '//',
57 });
58}
59
60export function removeGoogleMapsAppDelegateImport(src: string): MergeResults {
61 return removeContents({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…