@sodyo/react-native-sodyo-sdk 5.0.1 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -331,9 +331,9 @@ public class RNSodyoSdkModule extends ReactContextBaseJavaModule {
331
331
  Sodyo.setMode(activity, SettingsHelper.ScannerViewMode.Normal);
332
332
  }
333
333
 
334
- @ReactMethod
335
- public SettingsHelper.ScannerViewMode getMode() {
336
- return Sodyo.getMode();
334
+ @ReactMethod(isBlockingSynchronousMethod = true)
335
+ public String getMode() {
336
+ return Sodyo.getMode().name();
337
337
  }
338
338
 
339
339
  @ReactMethod
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sodyo/react-native-sodyo-sdk",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "RNSodyoSdk",
5
5
  "main": "sodyosdk.js",
6
6
  "typings": "./sodyosdk.d.ts",