mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 06:30:41 +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) {
|
private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
|
||||||
String keyInLowerCase = key.toLowerCase();
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case SHAKE_HINT:
|
case SHAKE_HINT:
|
||||||
return InstabugCustomTextPlaceHolder.Key.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
|
* @param isDebugEnabled whether debug logs should be printed or not into LogCat
|
||||||
*/
|
*/
|
||||||
setDebugEnabled: function(isDebugEnabled) {
|
setDebugEnabled: function(isDebugEnabled) {
|
||||||
Instabug.setDebugEnabled(isDebugEnabled);
|
if (Platform.OS === 'android') {
|
||||||
|
Instabug.setDebugEnabled(isDebugEnabled);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user