DYSCAN_NPM_TOKEN
build.gradle
add the Dyneti Maven repository (credentials provided during integration):build.gradle
file in the android
directory.MainActivity.java
at android/app/src/main/java/com/ProjectName/
to match the following.Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error)."
Podfile
in the ios
directory. If you are unsure what Swift version you are using, use Universal variant and make sure you are using the latest (non-beta) version of Xcode.use_frameworks!
line in the generated Podfile. If the generated Podfile contains two targets for ProjectName-tvOSTests,
you should remove the first target.node_modules/@dyneti/react-native-dyscan/RNDyScan.podspec
change the DyScan dependency tonode_modules/@dyneti/react-native-dyscan/RNDyScan.podspec
change the DyScan dependency tonode_modules/@dyneti/react-native-dyscan/RNDyScan.podspec
change the DyScan dependency tonode_modules/@dyneti/react-native-dyscan/RNDyScan.podspec
change the DyScan dependency tonode_modules/@dyneti/react-native-dyscan/RNDyScan.podspec
change the DyScan dependency tonode_modules/@dyneti/react-native-dyscan/RNDyScan.podspec
change the DyScan dependency toios
directory, execute in terminalInfo.plist
. When you hover over any of the fields in the file, a small plus icon should show up next to the field. Click on the plus sign and type in “NSCameraUsageDescription” into the new field. You should set the value to be the string a user sees when they are prompted for the camera permission (e.g. To scan credit cards).DyScan/DyScan.h
not found," you will need to remove DyScan as a library dependency. In the Xcode file tree, ctrl+click on RNDyScan.xcodeproj
under Libraries to
delete it. Xcode should prompt you to delete or remove the reference. Choose to remove the reference.$(SRCROOT)/../node_modules/@dyneti/react-native-dyscan/ios
to the search paths.App.js
add the following line to configure DyScan
.DyScanModule
abstracts the DyScanViewController
on iOS and the DyScanActivity
on Android. It will open a separate screen where the user will scan their card and return a JavaScript Promise. onCardScanned
you immediately navigate to a results screen, the screen containing our view will be persisted on the stack and so will not be unmounted. In order to ensure it is unmounted, you should make a call to navigation.goBack()
prior to making the call to navigation.navigate()
.apiKey
string
showCorners
boolean
cornerThickness
number
cornerInactiveColor
cornerCompletedColor
bgColor
bgOpacity
number
lightTorchWhenDark
boolean
vibrateOnCompletion
boolean
showDynetiLogo
boolean
showCardOverlay
boolean
showHelperText
boolean
helperTextString
string
helperTextSize
number
helperTextFontFamily
string
showRotateButton
boolean
iosHelperTextPosition
string
onCardScanned
card
will be undefined on failure.(card: CreditCard) => void
#ff0000
is red. The representation must be exactly 7 characters long; otherwise we will ignore it when trying to convert the strings to the native representations.