smartmessage-react-native 2.11.4 → 2.11.6

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.
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "smartmessage-react-native",
3
- "version": "2.11.4",
3
+ "version": "2.11.6",
4
4
  "description": "SmartMessage SMP React Native SDK",
5
5
  "main": "src/index.js",
6
+ "types": "src/index.d.ts",
6
7
  "author": "SmartMessage",
7
8
  "email": "engineering.accounts@smartmessage.com",
8
9
  "repository": {
package/src/index.d.ts CHANGED
@@ -35,6 +35,8 @@ declare class SmartMessage {
35
35
 
36
36
  static requestLocationPermission(): void;
37
37
  static async requestLocationPermissionWithPromise(): Promise<boolean>;
38
+ static checkNotificationPermission(): Promise<boolean | undefined>;
39
+ static checkLocationPermission(): Promise<boolean>;
38
40
  static startLocationTracking(): void;
39
41
  static stopLocationTracking(): void;
40
42
 
@@ -235,4 +237,5 @@ export interface Media {
235
237
  iconUrl: string;
236
238
  }
237
239
 
240
+ export default SmartMessage;
238
241
 
package/src/types.d.ts CHANGED
@@ -443,6 +443,8 @@ declare module 'smartmessage-react-native' {
443
443
  static permissionUpdateWithPromise(permissionType: string, isGranted: boolean): Promise<any>;
444
444
  static requestLocationPermission(): void;
445
445
  static requestLocationPermissionWithPromise(): Promise<any>;
446
+ static checkNotificationPermission(): Promise<boolean | undefined>;
447
+ static checkLocationPermission(): Promise<boolean>;
446
448
 
447
449
  // Location tracking
448
450
  static startLocationTracking(): void;