Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'react-native-reanimated'

Add this to your `babel.config.js`

```
```js
[
'react-native-reanimated/plugin',
{
Expand All @@ -25,6 +25,22 @@ Add this to your `babel.config.js`
]
```

## Ios podfile workaround

On ios if you have `use_frameworks` in your podfile, you must use this workaround to compile your project:
```rb
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('vision-camera-code-scanner') || pod.name.eql?('VisionCamera')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end
```
Make sure to put this just above `use_react_native!` as advised in https://github.com/rodgomesc/vision-camera-code-scanner/issues/62#issuecomment-1272598027

## Usage

Simply call the `useScanBarcodes()` hook or call `scanBarcodes()` inside of the `useFrameProcessor()` hook. In both cases you will need to pass an array of `BarcodeFormat` to specify the kind of barcode you want to detect.
Expand Down