Skip to content

Instantly share code, notes, and snippets.

@bachhm-dev
Created August 24, 2020 06:53
Show Gist options
  • Select an option

  • Save bachhm-dev/8d0c0fd515f36719975cf6ad97b00106 to your computer and use it in GitHub Desktop.

Select an option

Save bachhm-dev/8d0c0fd515f36719975cf6ad97b00106 to your computer and use it in GitHub Desktop.
import * as firebase from "nativescript-plugin-firebase";
trackingView() {
return firebase.analytics
.setScreenName({
screenName: "Home",
})
.then(
() => {
console.log("Screen name set");
},
(error) => {
console.log(`Screen ${error}`);
}
);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment