From 3ed019d018cce9ff20afb0fcc81146732419f17e Mon Sep 17 00:00:00 2001 From: hmaltr <43448461+hmaltr@users.noreply.github.com> Date: Mon, 19 Jun 2023 17:12:01 +0300 Subject: [PATCH] docs: Fix "siginificant" typo (#1626) --- docs/docs/guides/LIFECYCLE.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/guides/LIFECYCLE.mdx b/docs/docs/guides/LIFECYCLE.mdx index f4a63b3..ec7ba49 100644 --- a/docs/docs/guides/LIFECYCLE.mdx +++ b/docs/docs/guides/LIFECYCLE.mdx @@ -14,7 +14,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl'; The Camera's `isActive` property can be used to _pause_ the session (`isActive={false}`) while still keeping the session "warm". This is more desirable than completely unmounting the camera, since _resuming_ the session (`isActive={true}`) will be **much faster** than re-mounting the camera view. -For example, you want to **pause the camera** when the user **navigates to another page** or **minimizes the app** since otherwise the camera continues to run in the background without the user seeing it, causing **siginificant battery drain**. Also, on iOS a green dot indicates the user that the camera is still active, possibly causing the user to raise privacy concerns. (🔗 See ["About the orange and green indicators in your iPhone status bar"](https://support.apple.com/en-us/HT211876)) +For example, you want to **pause the camera** when the user **navigates to another page** or **minimizes the app** since otherwise the camera continues to run in the background without the user seeing it, causing **significant battery drain**. Also, on iOS a green dot indicates the user that the camera is still active, possibly causing the user to raise privacy concerns. (🔗 See ["About the orange and green indicators in your iPhone status bar"](https://support.apple.com/en-us/HT211876)) This example demonstrates how you could pause the camera stream once the app goes into background using a [custom `useIsAppForeground` hook](https://github.com/mrousavy/react-native-vision-camera/blob/main/example/src/hooks/useIsForeground.ts):