react-native-scanbot-barcode-scanner-sdk 3.3.1-beta.2 → 3.3.1-beta.3

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.
@@ -16,6 +16,7 @@ import com.facebook.react.bridge.NativeModule;
16
16
  import com.facebook.react.bridge.ReactApplicationContext;
17
17
  import com.facebook.react.uimanager.ViewManager;
18
18
 
19
+ import io.scanbot.barcodesdk.plugin.reactnative.ScanbotBarcodeSdkModule;
19
20
  import io.scanbot.barcodesdk.plugin.reactnative.components.barcodecameraview.ScanbotBarcodeCameraViewManager;
20
21
 
21
22
  public class ScanbotBarcodeSdkPackage implements ReactPackage {
@@ -32,5 +33,6 @@ public class ScanbotBarcodeSdkPackage implements ReactPackage {
32
33
  @SuppressWarnings({ "rawtypes" })
33
34
  @Override
34
35
  public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
35
- return
36
+ return Collections.singletonList(new ScanbotBarcodeCameraViewManager());
37
+ }
36
38
  }
@@ -86,7 +86,7 @@
86
86
  cameraViewConfiguration.codeDensity = extractBarcodeDensity(config);
87
87
  cameraViewConfiguration.finderInset = [self populateFinderInset:config];
88
88
 
89
- self.shouldUseFinderView = [config objectForKey:@"shouldUseFinderView"];
89
+ self.shouldUseFinderView = [[config objectForKey:@"shouldUseFinderView"] boolValue];
90
90
 
91
91
  } @catch (NSException *exception) {
92
92
  NSLog(@"%@", [exception reason]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-scanbot-barcode-scanner-sdk",
3
3
  "title": "Scanbot Barcode Scanner SDK for React Native",
4
- "version": "3.3.1-beta.2",
4
+ "version": "3.3.1-beta.3",
5
5
  "description": "Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS",
6
6
  "main": "index.js",
7
7
  "files": [