import { GoogleAnalyticsTracker, GoogleTagManager, GoogleAnalyticsSettings } from "react-native-google-analytics-bridge"; const tracker = new GoogleAnalyticsTracker("trackerId"); // $ExpectType void tracker.trackScreenView("Home"); // $ExpectType void tracker.trackEvent("MyEvent", "MyAction"); // $ExpectType Promise tracker.dispatch(); // $ExpectType void GoogleAnalyticsSettings.setDispatchInterval(30); // $ExpectType void GoogleAnalyticsSettings.setDryRun(false); // $ExpectType void GoogleAnalyticsSettings.setOptOut(false); // $ExpectType Promise GoogleTagManager.openContainerWithId("containerId"); // $ExpectType Promise GoogleTagManager.doubleForKey("someKey"); // $ExpectType Promise GoogleTagManager.boolForKey("someKey"); // $ExpectType Promise GoogleTagManager.stringForKey("someKey"); // $ExpectType Promise GoogleTagManager.setVerboseLoggingEnabled(true); // $ExpectType Promise GoogleTagManager.pushDataLayerEvent({ event: "myEvent", someKey: "myKey", metadata: { id: 1200 } });