Update FRAME_PROCESSOR_CREATE_PLUGIN_IOS.mdx

This commit is contained in:
Marc Rousavy 2021-06-24 12:12:43 +02:00 committed by GitHub
parent 2a00f2a098
commit a2311c02ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ VISION_EXPORT_FRAME_PROCESSOR(scanQRCodes)
4. **Implement your Frame Processing.** See the [QR Code Plugin (Objective-C)](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/ios/Frame%20Processor%20Plugins/QR%20Code%20Plugin%20%28Objective%2DC%29) for reference.
:::note
The JS function name will be equal to the Objective-C function name you choose (with a `__` prefix). Make sure it is unique across other Frame Processor Plugins, and doesn't shadow a JS runtime variable.
The JS function name will be equal to the Objective-C function name you choose (with a `__` prefix). Make sure it is unique across other Frame Processor Plugins.
:::
</TabItem>
@ -78,7 +78,7 @@ The JS function name will be equal to the Objective-C function name you choose (
```
:::note
The first parameter in the Macro specifies the JS function name. Make sure it is unique across other Frame Processors, and doesn't shadow a JS runtime variable (such as `Map`, `Number`, ...)
The first parameter in the Macro specifies the JS function name. Make sure it is unique across other Frame Processors.
:::
4. In the Swift file, add the following code: