docs: Add react-native-reanimated 2.1.0 note

This commit is contained in:
Marc Rousavy 2021-05-06 16:21:08 +02:00
parent e4214b4229
commit e9ba8aac7b
2 changed files with 8 additions and 1 deletions

View File

@ -6,7 +6,6 @@ sidebar_label: Frame Processors
import useBaseUrl from '@docusaurus/useBaseUrl'; import useBaseUrl from '@docusaurus/useBaseUrl';
<!-- TODO: Demo of QR code scanning or smth -->
<div> <div>
<svg xmlns="http://www.w3.org/2000/svg" width="283" height="535" style={{ float: 'right' }}> <svg xmlns="http://www.w3.org/2000/svg" width="283" height="535" style={{ float: 'right' }}>
<image href={useBaseUrl("img/frame-processors.gif")} x="18" y="33" width="247" height="469" /> <image href={useBaseUrl("img/frame-processors.gif")} x="18" y="33" width="247" height="469" />
@ -54,6 +53,12 @@ Because of the Frame Processor API's extensibility, you can even create your **c
<img src={useBaseUrl("img/appclip.png")} height={150} style={{ marginLeft: 50 }} /> <img src={useBaseUrl("img/appclip.png")} height={150} style={{ marginLeft: 50 }} />
</div> </div>
<br />
:::note
Frame Processors require [**react-native-reanimated**](https://github.com/software-mansion/react-native-reanimated) 2.1.0 or higher.
:::
### Interacting with Frame Processors ### Interacting with Frame Processors
Since Frame Processors run in Worklets, you can also easily read from, and assign to [**Shared Values**](https://docs.swmansion.com/react-native-reanimated/docs/shared-values): Since Frame Processors run in Worklets, you can also easily read from, and assign to [**Shared Values**](https://docs.swmansion.com/react-native-reanimated/docs/shared-values):

View File

@ -22,6 +22,8 @@ npx pod-install
VisionCamera requires **iOS 11 or higher**, and **Android-SDK version 21 or higher**. See [Troubleshooting](/docs/guides/troubleshooting) if you're having installation issues. VisionCamera requires **iOS 11 or higher**, and **Android-SDK version 21 or higher**. See [Troubleshooting](/docs/guides/troubleshooting) if you're having installation issues.
> **(Optional)** If you want to use [**Frame Processors**](/docs/guides/frame-processors), you need to install [**react-native-reanimated**](https://github.com/software-mansion/react-native-reanimated) 2.1.0 or higher.
## Updating manifests ## Updating manifests
To use a Camera or Microphone you must first specify that your app requires camera and microphone permissions. To use a Camera or Microphone you must first specify that your app requires camera and microphone permissions.