import { NgModule , NO_ERRORS_SCHEMA } from "@angular/core" ; import { NativeScriptModule } from "nativescript-angular/nativescript.module" ; import { AppRoutingModule } from "./app.routing" ; import { AppComponent } from "./app.component" ; import { MapComponent } from "./map/map.component" ; import * as platform from "platform" ; declare var GMSServices ; if ( platform . isIOS ) { GMSServices . provideAPIKey ( "AIzaSyAtRVvG3Be3xXiZFR7xp-K-9hy4nZ4hMFs" ) ; } @ NgModule ( { bootstrap : [ AppComponent ] , imports : [ NativeScriptModule , AppRoutingModule ] , declarations : [ AppComponent , MapComponent ] , schemas : [ NO_ERRORS_SCHEMA ] } ) export class AppModule { }