add functionality for multiple callbacks from scanner

This commit is contained in:
Dmytro Ponomarenko 2018-03-12 09:28:47 +02:00
parent 95babe0f2c
commit bacebf8d31
2 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,7 @@ export default class CameraScreen extends Component {
onReadCode={((event) => Alert.alert(`Qr code found ${event.nativeEvent.codeStringValue} `))}
hideControls={true}
isNeedMultipleScanBarcode = {true}
// offsetForScannerFrame = {10}
// heightForScannerFrame = {300}
colorForScannerFrame = {'blue'}

View File

@ -158,6 +158,7 @@ RCT_ENUM_CONVERTER(CKCameraZoomMode, (@{
}
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
@ -1112,3 +1113,4 @@ const NSString *isNeedMultipleScanBarcode = @"isNeedMultipleScanBarcode";
@end