How to use the expo-analytics-amplitude.logEventWithProperties function in expo-analytics-amplitude

To help you get started, we’ve selected a few expo-analytics-amplitude examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bastiRe / eLadder / app / components / screens / LeagueScreen.js View on Github external
_openAddPlayer(league) {
    Amplitude.logEventWithProperties("OpenCreatePlayer", {
      leagueId: league.id
    });
    this.props.navigation.navigate("AddPlayer", {
      players: league.players,
      leagueId: league.id
    });
    setTimeout(() => this.setState({ selectedTab: "Table" }), 200);
  }
github expo / expo / home / api / Analytics.ts View on Github external
export function track(event: string, options?: TrackingOptions): void {
  initialize();
  const properties = normalizeTrackingOptions(options);

  if (properties) {
    Amplitude.logEventWithProperties(event, properties);
  } else {
    Amplitude.logEvent(event);
  }
}
github bastiRe / eLadder / app / components / screens / LeaguesListScreen.js View on Github external
_openLeague(leagueId, allLeagues) {
    if (this.props.navigation.isFocused()) {
      const league = allLeagues.find(league => league.id === leagueId);
      Amplitude.logEventWithProperties("OpenLeague", { leagueId });
      this.props.navigation.navigate("League", {
        leagueId,
        leagueTitle: league.title
      });
    }
  }
github bastiRe / eLadder / app / components / base / GamesList.js View on Github external
_openGame(game) {
    Amplitude.logEventWithProperties("OpenGame", {
      leagueId: this.props.leagueId,
      gameId: game.id
    });
    this.props.navigation.navigate("Game", {
      game,
      leagueId: this.props.leagueId
    });
  }
github bastiRe / eLadder / app / components / graphql / RemoveLeagueMutation.js View on Github external
onPress: async () => {
                    await removeLeagueId({ variables: { leagueId } });
                    Amplitude.logEventWithProperties("RemoveLeague", {
                      leagueId
                    });
                    resolve(true);
                  }
                }
github bastiRe / eLadder / app / components / screens / LeagueScannerScreen.js View on Github external
const wrappedAddLeagueId = async leagueId => {
            await addLeagueId({ leagueId });
            Amplitude.logEventWithProperties("AddLeagueFromQRCode", {
              leagueId
            });
            this.props.navigation.goBack();
          };
          let content;
github bastiRe / eLadder / app / components / base / Table.js View on Github external
_openPlayer(player) {
    const { leagueId } = this.props.leagueId;
    Amplitude.logEventWithProperties("OpenPlayer", {
      leagueId,
      playerId: player.id
    });
    this.props.navigation.navigate("Player", {
      player,
      leagueId
    });
  }
github bastiRe / eLadder / app / components / base / AddLeagueFromLink.js View on Github external
onPress: async () => {
              Amplitude.logEventWithProperties("AddLeagueFromLink", {
                leagueId
              });
              await this.props.addLeagueIdMutation({ variables: { leagueId } });
              this.props.openLeaguesList();
            }
          },
github bastiRe / eLadder / app / components / base / LeagueOptions.js View on Github external
_shareLeague = () => {
    const { leagueId, leagueTitle } = this.props;
    Amplitude.logEventWithProperties("OpenShareLeague", {
      leagueId
    });
    this.props.navigation.navigate("ShareLeague", {
      leagueId,
      leagueTitle
    });
  };

expo-analytics-amplitude

Provides access to Amplitude (https://amplitude.com/) mobile analytics. This module wraps Amplitude-iOS (https://github.com/amplitude/Amplitude-iOS) and Android (https://github.com/amplitude/Amplitude-Android) SDKs.

MIT
Latest version published 3 years ago

Package Health Score

70 / 100
Full package analysis