react-native-unit-components 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,7 +56,7 @@ class UNShareFile(var reactContext: ReactApplicationContext) :
56
56
  intentShareFile.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
57
57
  intentShareFile.putExtra(Intent.EXTRA_STREAM, outputFileUri)
58
58
  intentShareFile.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
59
- val currentActivity = currentActivity
59
+ val currentActivity = reactContext.currentActivity
60
60
  currentActivity!!.startActivity(Intent.createChooser(intentShareFile, ""))
61
61
  }
62
62
 
@@ -20,7 +20,7 @@ var _UNSnapshotProtectionHelper = _interopRequireDefault(require("../nativeModul
20
20
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
21
  class UnitComponentsSDK {
22
22
  static securitySettings = _UnitComponentsSdk2.UNComponentsSDKConstants.securitySettings;
23
- static sdkVersion = '3.0.0';
23
+ static sdkVersion = '3.0.1';
24
24
  static init = async (env, theme, language, fonts, webVersioningStrategy = _UnitComponentsSdk2.UNComponentsSDKConstants.webSDKRecommendedStrategy, securitySettings = _UnitComponentsSdk2.UNComponentsSDKConstants.securitySettings) => {
25
25
  try {
26
26
  this.webVersioningStrategy = webVersioningStrategy;
@@ -13,7 +13,7 @@ import { UNComponentsSnapshotProtectionStrategy } from '../types/shared/security
13
13
  import UNSnapshotProtectionHelper from '../nativeModulesHelpers/UNSanpshotProtectionHelper/UNSnapshotProtectionHelper';
14
14
  export class UnitComponentsSDK {
15
15
  static securitySettings = UNComponentsSDKConstants.securitySettings;
16
- static sdkVersion = '3.0.0';
16
+ static sdkVersion = '3.0.1';
17
17
  static init = async (env, theme, language, fonts, webVersioningStrategy = UNComponentsSDKConstants.webSDKRecommendedStrategy, securitySettings = UNComponentsSDKConstants.securitySettings) => {
18
18
  try {
19
19
  this.webVersioningStrategy = webVersioningStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unit-components",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Unit React Native components",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -25,7 +25,7 @@ export class UnitComponentsSDK {
25
25
  protected static fonts?: UNFonts;
26
26
  protected static signedNonce?: string;
27
27
  protected static pushProvisionModule?: typeof NativeModules;
28
- protected static sdkVersion = '3.0.0';
28
+ protected static sdkVersion = '3.0.1';
29
29
 
30
30
  public static init = async (
31
31
  env: UNComponentsEnvironment,