diff --git a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java index 08576a2..54c442c 100644 --- a/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java +++ b/android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java @@ -95,7 +95,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { private final String EXTENDED_BUG_REPORT_DISABLED = "disabled"; //Instabug repro step modes - private final String ENABLED_WITH_NO_SCREENSHOT = "enabledWithNoScreenshot"; + private final String ENABLED_WITH_NO_SCREENSHOTS = "enabledWithNoScreenshots"; private final String ENABLED = "enabled"; private final String DISABLED = "disabled"; @@ -1233,7 +1233,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { } /** - * Sets whether user steps tracking is visual, non visula or disabled. + * Sets whether user steps tracking is visual, non visual or disabled. * * @param reproStepsMode A string to set user steps tracking to be * enabled, non visual or disabled. @@ -1242,7 +1242,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { public void setReproStepsMode(String reproStepsMode) { try { switch(reproStepsMode) { - case ENABLED_WITH_NO_SCREENSHOT: + case ENABLED_WITH_NO_SCREENSHOTS: Instabug.setReproStepsState(State.ENABLED_WITH_NO_SCREENSHOTS); break; case ENABLED: @@ -1508,7 +1508,7 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule { constants.put("enabledWithOptionalFields", EXTENDED_BUG_REPORT_OPTIONAL_FIELDS); constants.put("disabled", EXTENDED_BUG_REPORT_DISABLED); - constants.put("reproStepsEnabledWithNoScreenshot", ENABLED_WITH_NO_SCREENSHOT); + constants.put("reproStepsEnabledWithNoScreenshots", ENABLED_WITH_NO_SCREENSHOTS); constants.put("reproStepsEnabled", ENABLED); constants.put("reproStepsDisabled", DISABLED); diff --git a/index.js b/index.js index e435a5b..27d3fea 100644 --- a/index.js +++ b/index.js @@ -920,7 +920,7 @@ module.exports = { reproStepsMode: { enabled: Instabug.reproStepsEnabled, disabled: Instabug.reproStepsDisabled, - enabledWithNoScreenshot: Instabug.reproStepsEnabledWithNoScreenshot, + enabledWithNoScreenshots: Instabug.reproStepsEnabledWithNoScreenshots, }, /** diff --git a/ios/RNInstabug/InstabugReactBridge.m b/ios/RNInstabug/InstabugReactBridge.m index e6a5d1d..55c8c80 100644 --- a/ios/RNInstabug/InstabugReactBridge.m +++ b/ios/RNInstabug/InstabugReactBridge.m @@ -406,7 +406,7 @@ RCT_EXPORT_METHOD(isRunningLive:(RCTResponseSenderBlock)callback) { @"reproStepsEnabled": @(IBGUserStepsModeEnable), @"reproStepsDisabled": @(IBGUserStepsModeDisable), - @"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots), + @"reproStepsEnabledWithNoScreenshots": @(IBGUserStepsModeEnabledWithNoScreenshots), @"reportTypeBug": @(IBGReportTypeBug), @"reportTypeFeedback": @(IBGReportTypeFeedback), diff --git a/ios/RNInstabug/RCTConvert+InstabugEnums.m b/ios/RNInstabug/RCTConvert+InstabugEnums.m index 56ae053..e07a959 100644 --- a/ios/RNInstabug/RCTConvert+InstabugEnums.m +++ b/ios/RNInstabug/RCTConvert+InstabugEnums.m @@ -37,7 +37,7 @@ RCT_ENUM_CONVERTER(IBGDismissType, (@{ RCT_ENUM_CONVERTER(IBGUserStepsMode, (@{ @"reproStepsEnabled": @(IBGUserStepsModeEnable), @"reproStepsDisabled": @(IBGUserStepsModeDisable), - @"reproStepsEnabledWithNoScreenshot": @(IBGUserStepsModeEnabledWithNoScreenshots) + @"reproStepsEnabledWithNoScreenshots": @(IBGUserStepsModeEnabledWithNoScreenshots) }), IBGUserStepsModeEnable, integerValue) RCT_ENUM_CONVERTER(IBGExtendedBugReportMode, (@{