fable-import-react-native-barcodescanner
Fable bindings for React Native Barcode Scanner
Installation
Install fable-import-react-native and follow the instructions for that package.
Follow install instructions for react-native-barcodescanner and then:
$ npm install --save-dev fable-import-react-native-barcodescanner
Usage
Follow instructions for react-native-barcodescanner.
In F# project (.fsproj)
In F# script (.fsx)
#load "node_modules/able-import-react-native-barcodescanner/Fable.Import.ReactNativeBarcodeScanner.fs"#load "node_modules/able-import-react-native-barcodescanner/Fable.Helpers.ReactNativeBarcodeScanner.fs" open Fable.Coreopen Fable.Importmodule R = Fable.Helpers.Reactmodule RN = Fable.Import.ReactNativeopen Fable.Helpers.ReactNativeBarcodeScanneropen Fable.Helpers.ReactNativeBarcodeScanner.Props ... barcodeScanner [BarcodeScannerProperties.OnBarCodeRead (fun result -> ... )]