Update FRAME_PROCESSOR_CREATE_FINAL.mdx
This commit is contained in:
parent
fe4b3c093b
commit
43f5c54363
@ -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)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user