Setting Calabash ionic - Hipolyto/ionic-calabash GitHub Wiki

#Setting Calabash ionic

The first step to enable Calabash is modify the app.component.ts file;

# /src/app/app.component.ts
constructor(platform: Platform, mixpanel: MixpanelService) {
    platform.ready().then(() => {
      if ((<any>window).calabash) {
        (<any>window).calabash.start(() => {
          console.log('Calabash started')
        }, (err) => {
          console.log(err);
        });
      }

      mixpanel.init("8e61a5c5b1103da23c2088f2dc44a043");

      var statusBarOverlayWebView = platform.is('ios');

      StatusBar.overlaysWebView(statusBarOverlayWebView)
      StatusBar.backgroundColorByHexString("#95BDC1");

      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      Splashscreen.hide();

      if ((<any>window).plugins && (<any>window).plugins.headerColor)
        (<any>window).plugins.headerColor.tint("#c6d9db");
    });
⚠️ **GitHub.com Fallback** ⚠️