public GreatPushReactPackage(string deploymentKey, ReactNativeHost host) { AppVersion = GreatPushUtils.GetAppVersion(); DeploymentKey = deploymentKey; Host = host; UpdateManager = new UpdateManager(); if (CurrentInstance != null) { GreatPushUtils.Log("More than one GreatPush instance has been initialized. Please use the instance method greatPush.getBundleUrlInternal() to get the correct bundleURL for a particular instance."); } CurrentInstance = this; }
#pragma warning disable CS0618 // Keeping for backward compatibility public GreatPushReactPackage(string deploymentKey, ReactPage mainPage) #pragma warning restore CS0618 // Keeping for backward compatibility { AppVersion = GreatPushUtils.GetAppVersion(); DeploymentKey = deploymentKey; MainPage = mainPage; UpdateManager = new UpdateManager(); if (CurrentInstance != null) { GreatPushUtils.Log("More than one GreatPush instance has been initialized. Please use the instance method greatPush.getBundleUrlInternal() to get the correct bundleURL for a particular instance."); } CurrentInstance = this; }
public GreatPushNativeModule(ReactContext reactContext, GreatPushReactPackage greatPush) : base(reactContext) { _reactContext = reactContext; _greatPush = greatPush; }