diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 39362a7..af6941c 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -1108,7 +1108,6 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { } private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) { - String keyInLowerCase = key.toLowerCase(); switch (key) { case SHAKE_HINT: return InstabugCustomTextPlaceHolder.Key.SHAKE_HINT; diff --git a/index.js b/index.js index 40a19e0..894bd7d 100644 --- a/index.js +++ b/index.js @@ -728,7 +728,9 @@ module.exports = { * @param isDebugEnabled whether debug logs should be printed or not into LogCat */ setDebugEnabled: function(isDebugEnabled) { - Instabug.setDebugEnabled(isDebugEnabled); + if (Platform.OS === 'android') { + Instabug.setDebugEnabled(isDebugEnabled); + } }, /**