Update FRAME_PROCESSOR_CREATE_FINAL.mdx

This commit is contained in:
Marc Rousavy 2021-09-09 22:04:05 +02:00 committed by GitHub
parent fe4b3c093b
commit 43f5c54363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,14 +9,14 @@ sidebar_label: Finish creating your Frame Processor Plugin
To make the Frame Processor Plugin available to the Frame Processor Worklet Runtime, create the following wrapper function in JS/TS: To make the Frame Processor Plugin available to the Frame Processor Worklet Runtime, create the following wrapper function in JS/TS:
```ts ```ts
import type { Frame } from 'react-native-vision-camera'; import type { Frame } from 'react-native-vision-camera'
/** /**
* Scans QR codes. * Scans QR codes.
*/ */
export function scanQRCodes(frame: Frame): string[] { export function scanQRCodes(frame: Frame): string[] {
'worklet'; 'worklet'
return __scanQRCodes(frame); return __scanQRCodes(frame)
} }
``` ```