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

Function addGoogleMapsAppDelegateInit

plugin/src/ios.ts:67–85  ·  view source on GitHub ↗
(
  src: string,
  apiKey: string,
)

Source from the content-addressed store, hash-verified

65}
66
67export function addGoogleMapsAppDelegateInit(
68 src: string,
69 apiKey: string,
70): MergeResults {
71 const newSrc = [
72 '#if canImport(GoogleMaps)',
73 `GMSServices.provideAPIKey("${apiKey}")`,
74 '#endif',
75 ];
76
77 return mergeContents({
78 tag: 'react-native-maps-init',
79 src,
80 newSrc: newSrc.join('\n'),
81 anchor: MATCH_INIT,
82 offset: 0,
83 comment: '//',
84 });
85}
86
87export function removeGoogleMapsAppDelegateInit(src: string): MergeResults {
88 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…