klippa-app / react-native-klippa-scanner-sdk

A React Native plugin to use the Klippa Scanner SDK
MIT License
2 stars 0 forks source link

Adjust to support new SDK versions. #13

Closed RobinFarmer closed 3 years ago

RobinFarmer commented 3 years ago

This PR includes the changes to support the newest iOS and Android SDK's.

Users can now use the following:

ShutterButton: {allowShutterButton: true, hideShutterButton: false},

This allows the users to disallow (greyed out shutter button) or hide the shutter button (gone completely)

Also able to adjust the motion detection sensitivity per OS.

iOS:

ImageMovingSensitivityiOS: 200,

Android:

ImageMovingSensitivityAndroid: 50,

This is necessary because they each use their own methods which work in different ways. Essentially they work the same, low value is higher motion sensitive.