How to use the appcenter.startFromLibrary function in appcenter

To help you get started, we’ve selected a few appcenter 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 microsoft / appcenter-sdk-react-native / DemoApp / app / screens / TransmissionScreen.js View on Github external
async componentDidMount() {
    await AppCenter.startFromLibrary(Analytics);
    await this.createTargetsFromTokens(0, Analytics);

    const transmissionTarget = this.transmissionTargets[this.state.targetToken.key];
    if (transmissionTarget) {
      const targetEnabled = await transmissionTarget.isEnabled();
      this.setState({ targetEnabled });
    }
  }
github microsoft / appcenter-sdk-react-native / TestApp / app / screens / TransmissionScreen.js View on Github external
async componentDidMount() {
    await AppCenter.startFromLibrary(Analytics);
    await this.createTargetsFromTokens(0, Analytics);

    const transmissionTarget = this.transmissionTargets[this.state.targetToken.key];
    if (transmissionTarget) {
      const targetEnabled = await transmissionTarget.isEnabled();
      this.setState({ targetEnabled });
    }
  }