// Call setiOSVerifyViewStyle before scan
if (Platform.OS === 'ios') {
CardVerify.setiOSVerifyViewStyle({
'backButtonTintColor': '#000',
'backButtonText': 'Close',
'backgroundColor': '#FFC0CB',
'backgroundColorOpacity': 0.5,
'cardDetailExpiryTextColor': '#FFF',
'cardDetailNameTextColor': '#FFF',
'cardDetailNumberTextColor': '#FFF',
'descriptionHeaderText': 'Scan Card',
'descriptionHeaderTextColor': '#FFF',
'descriptionHeaderTextFont': 'Avenir-Heavy',
'descriptionHeaderTextSize': 30.0,
'enableCameraPermissionText': "Enable your camera permissions",
'enableCameraPermissionTextColor': '#000',
'enableCameraPermissionTextFont': 'Avenir-LightOblique',
'enableCameraPermissionTextSize': 20.0,
'enableManualCardEntry': true,
'instructionText': 'Please center your card in the middle',
'instructionTextFont': 'Avenir-Light',
'instructionTextColor': '#00ff00',
'instructionTextSize': 20.0,
'manualCardEntryText': 'Enter your card manually',
'manualCardEntryTextColor': '#0000ff',
'manualCardEntryTextFont': 'Avenir-BookOblique',
'manualCardEntryTextSize': 25.0,
'roiBorderColor': '#ff0000',
'torchButtonTintColor': '#000',
'torchButtonText': 'Torch',
'torchButtonPosition': 0 <topRight> | 1 <bottom>,
'wrongCardText': 'This is the wrong card'
const { action, scanId, payload, canceledReason } = await CardVerify.scan(bin, lastFour, true);