Skip to content

Commit

Permalink
[docs] only one barcodescanner component can be mounted (expo#9357)
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzach authored Jul 22, 2020
1 parent 32ed095 commit cc79301
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions docs/pages/versions/unversioned/sdk/bar-code-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import SnackInline from '~/components/plugins/SnackInline';

<PlatformsSection android emulator ios simulator web={{ pending: 'https://github.com/expo/expo/pull/4166' }} />

> **Note:** Only one active BarCodeScanner preview is supported currently. When using navigation, the best practice is to unmount any previously rendered BarCodeScanner component so the following screens can use `<BarCodeScanner />` without issues.
## Installation

<InstallSection packageName="expo-barcode-scanner" />
Expand Down
3 changes: 2 additions & 1 deletion docs/pages/versions/unversioned/sdk/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import TableOfContentSection from '~/components/plugins/TableOfContentSection';
<PlatformsSection android ios web />

> **Notes:**
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount previously rendered `Camera` component so next screens can use camera without issues.
>
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount any previously rendered `Camera` component so the following screens can use `<Camera />` without issues.
> - Android devices can use one of two available Camera apis underneath. This was previously chosen automatically, based on the device's Android system version and camera hardware capabilities. As we experienced some issues with Android's Camera2 API, we decided to choose the older API as a default. However, using the newer one is still possible through setting `useCamera2Api` prop to true. The change we made should be barely visible - the only thing that is not supported using the old Android's API is setting focus depth.
## Installation
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/versions/v36.0.0/sdk/bar-code-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import SnackInline from '~/components/plugins/SnackInline';

<PlatformsSection android emulator ios simulator web={{ pending: 'https://github.com/expo/expo/pull/4166' }} />

> **Note:** Only one active BarCodeScanner preview is supported currently. When using navigation, the best practice is to unmount any previously rendered BarCodeScanner component so the following screens can use `<BarCodeScanner />` without issues.
## Installation

<InstallSection packageName="expo-barcode-scanner" />
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/versions/v36.0.0/sdk/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import TableOfContentSection from '~/components/plugins/TableOfContentSection';
<PlatformsSection android ios web />

> **Note**:
- Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount previously rendered `Camera` component so next screens can use camera without issues.
- Android devices can use one of two available Camera apis underneath. This was previously chosen automatically, based on the device's Android system version and camera hardware capabilities. As we experienced some issues with Android's Camera2 API, we decided to choose the older API as a default. However, using the newer one is still possible through setting `useCamera2Api` prop to true. The change we made should be barely visible - the only thing that is not supported using the old Android's API is setting focus depth.
>
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount any previously rendered `Camera` component so the following screens can use `<Camera />` without issues.
> - Android devices can use one of two available Camera apis underneath. This was previously chosen automatically, based on the device's Android system version and camera hardware capabilities. As we experienced some issues with Android's Camera2 API, we decided to choose the older API as a default. However, using the newer one is still possible through setting `useCamera2Api` prop to true. The change we made should be barely visible - the only thing that is not supported using the old Android's API is setting focus depth.
## Installation

Expand Down
2 changes: 2 additions & 0 deletions docs/pages/versions/v37.0.0/sdk/bar-code-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import SnackInline from '~/components/plugins/SnackInline';

<PlatformsSection android emulator ios simulator web={{ pending: 'https://github.com/expo/expo/pull/4166' }} />

> **Note:** Only one active BarCodeScanner preview is supported currently. When using navigation, the best practice is to unmount any previously rendered BarCodeScanner component so the following screens can use `<BarCodeScanner />` without issues.
## Installation

<InstallSection packageName="expo-barcode-scanner" />
Expand Down
3 changes: 2 additions & 1 deletion docs/pages/versions/v37.0.0/sdk/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import TableOfContentSection from '~/components/plugins/TableOfContentSection';
<PlatformsSection android ios web />

> **Notes:**
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount previously rendered `Camera` component so next screens can use camera without issues.
>
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount any previously rendered `Camera` component so the following screens can use `<Camera />` without issues.
> - Android devices can use one of two available Camera apis underneath. This was previously chosen automatically, based on the device's Android system version and camera hardware capabilities. As we experienced some issues with Android's Camera2 API, we decided to choose the older API as a default. However, using the newer one is still possible through setting `useCamera2Api` prop to true. The change we made should be barely visible - the only thing that is not supported using the old Android's API is setting focus depth.
## Installation
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/versions/v38.0.0/sdk/bar-code-scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import SnackInline from '~/components/plugins/SnackInline';

<PlatformsSection android emulator ios simulator web={{ pending: 'https://github.com/expo/expo/pull/4166' }} />

> **Note:** Only one active BarCodeScanner preview is supported currently. When using navigation, the best practice is to unmount any previously rendered BarCodeScanner component so the following screens can use `<BarCodeScanner />` without issues.
## Installation

<InstallSection packageName="expo-barcode-scanner" />
Expand Down
3 changes: 2 additions & 1 deletion docs/pages/versions/v38.0.0/sdk/camera.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import TableOfContentSection from '~/components/plugins/TableOfContentSection';
<PlatformsSection android ios web />

> **Notes:**
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount previously rendered `Camera` component so next screens can use camera without issues.
>
> - Only one active Camera preview is supported currently. When using navigation, the best practice is to unmount any previously rendered `Camera` component so the following screens can use `<Camera />` without issues.
> - Android devices can use one of two available Camera apis underneath. This was previously chosen automatically, based on the device's Android system version and camera hardware capabilities. As we experienced some issues with Android's Camera2 API, we decided to choose the older API as a default. However, using the newer one is still possible through setting `useCamera2Api` prop to true. The change we made should be barely visible - the only thing that is not supported using the old Android's API is setting focus depth.
## Installation
Expand Down

0 comments on commit cc79301

Please sign in to comment.