Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deprecate camera management hooks on react native #1711

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

santhoshvai
Copy link
Member

No description provided.

@@ -10,6 +10,8 @@ import { useEffect, useRef } from 'react';
/**
* This hook is meant to be used in Lobby view or equivalent.
* It will cleanup the media stream on unmount if call is not meant to be joined.
*
* @deprecated use `call.camera.enable()` or `call.camera.disable()` instead based on your navigation flow.
*/
export const useCallMediaStreamCleanup = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can even delete this hook, as it doesn't seem to be exported to user-land.

@oliverlaz
Copy link
Member

@santhoshvai santhoshvai marked this pull request as draft March 10, 2025 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants