mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
Make sure that set debug enabled is for the android platform to avoid crashes in iOS
This commit is contained in:
parent
b8ec3be49a
commit
f4fc9d53e1
@ -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;
|
||||
|
4
index.js
4
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);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user