Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

fable-import-react-native-barcodescanner

0.0.8 • Public • Published

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)

  <ItemGroup>
    <Compile Include="node_modules/able-import-react-native-barcodescanner/Fable.Import.ReactNativeBarcodeScanner.fs" />
    <Compile Include="node_modules/able-import-react-native-barcodescanner/Fable.Helpers.ReactNativeBarcodeScanner.fs" />
  </ItemGroup>

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.Core
open Fable.Import
module R = Fable.Helpers.React
module RN = Fable.Import.ReactNative
open Fable.Helpers.ReactNativeBarcodeScanner
open Fable.Helpers.ReactNativeBarcodeScanner.Props
 
...
 
barcodeScanner [BarcodeScannerProperties.OnBarCodeRead (fun result -> ... )] 
 
 

install

npm i fable-import-react-native-barcodescanner

Downloadsweekly downloads

2

version

0.0.8

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability