Sample Apps
React Native Samples
React Native sample apps that use the React Native Datalogic Module.
Name | Description |
---|---|
AutoScanTrigger | Uses autoScanTrigger functions to toggle available triggers. |
DecodeListener | Uses barcodeManager functions to display barcode data on the screen. |
LedManager | Uses ledManager functions to turn device LEDs on and off. |
SetSymbologies | Uses scannerProperties functions to enable or disable barcode symbologies. |
SetTriggers | Uses keyboardManager functions to enable or disable device triggers. |
Build
1. Make sure you are set up to build and run on an Android device. See the requirements here.
2. Then download classic yarn and check the version is less than v2.0 using the following:
npm install --global yarn
yarn --version
3. Then you can build and run the React Native sample apps with these commands:
cd react-native-samples
cd DecodeListener <or any of the sample apps>
yarn
yarn react-native start
<in a separate terminal>
cd DecodeListener
yarn android