diff --git a/index.js b/index.js index fef885301..b342afa99 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,7 @@ import Surveys from './modules/Surveys'; import FeatureRequests from './modules/FeatureRequests'; import Chats from './modules/Chats'; import Replies from './modules/Replies'; +import CrashReporting from './modules/CrashReporting'; InstabugUtils.captureJsErrors(); @@ -980,5 +981,6 @@ InstabugModule.Surveys = Surveys; InstabugModule.FeatureRequests = FeatureRequests; InstabugModule.Chats = Chats; InstabugModule.Replies = Replies; +InstabugModule.CrashReporting = CrashReporting; module.exports = InstabugModule; diff --git a/modules/CrashReporting.js b/modules/CrashReporting.js index 8580b050a..f224291fd 100644 --- a/modules/CrashReporting.js +++ b/modules/CrashReporting.js @@ -1,4 +1,4 @@ -import { NativeModules } from 'react-native'; +import { NativeModules, Platform } from 'react-native'; import InstabugUtils from '../utils/InstabugUtils'; let { Instabug } = NativeModules; diff --git a/package.json b/package.json index 1b3eaa85c..1075955c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "instabug-reactnative", - "version": "8.1.2", + "version": "8.1.3", "description": "React Native plugin for integrating the Instabug SDK", "main": "index.js", "types": "index.d.ts",