diff --git a/packages/react-native-sdk/src/providers/StreamCall.tsx b/packages/react-native-sdk/src/providers/StreamCall.tsx index 24e0eaf158..8d9556a8d0 100644 --- a/packages/react-native-sdk/src/providers/StreamCall.tsx +++ b/packages/react-native-sdk/src/providers/StreamCall.tsx @@ -1,7 +1,7 @@ import { StreamCallProvider } from '@stream-io/video-react-bindings'; import React, { PropsWithChildren } from 'react'; import { Call } from '@stream-io/video-client'; -import { useAndroidKeepCallAliveEffect, usePermissionRequest } from '../hooks'; +import { useAndroidKeepCallAliveEffect } from '../hooks'; import { useIosCallkeepWithCallingStateEffect } from '../hooks/push/useIosCallkeepWithCallingStateEffect'; import { MediaDevicesInitialState, @@ -34,7 +34,6 @@ export const StreamCall = ({ return ( - {children} @@ -43,15 +42,6 @@ export const StreamCall = ({ ); }; -/** - * This is a renderless component that is used to handler the permission requests using the usePermissionRequest hook. - * usePermissionRequest needs to be called as a child of StreamCallProvider. - */ -const PermissionRequest = () => { - usePermissionRequest(); - return null; -}; - /** * This is a renderless component is used to keep the call alive on Android device using useAndroidKeepCallAliveEffect. * useAndroidKeepCallAliveEffect needs to called inside a child of StreamCallProvider.