diff --git a/react-native-sdk/index.tsx b/react-native-sdk/index.tsx index 447008aa45bfc..7cc0b7b02246b 100644 --- a/react-native-sdk/index.tsx +++ b/react-native-sdk/index.tsx @@ -17,6 +17,7 @@ import type { IRoomsInfo } from '../react/features/breakout-rooms/types'; import { appNavigate } from './react/features/app/actions.native'; import { App } from './react/features/app/components/App.native'; +import { setAudioOnly } from './react/features/base/audio-only/actions'; import { setAudioMuted, setVideoMuted } from './react/features/base/media/actions'; import { getRoomsInfo } from './react/features/breakout-rooms/functions'; @@ -54,6 +55,7 @@ interface IAppProps { export interface JitsiRefProps { close: Function; + setAudioOnly?: (value: boolean) => void; setAudioMuted?: (muted: boolean) => void; setVideoMuted?: (muted: boolean) => void; getRoomsInfo?: () => IRoomsInfo; @@ -83,6 +85,11 @@ export const JitsiMeeting = forwardRef((props, ref) => dispatch(appNavigate(undefined)); }, + setAudioOnly: value => { + const dispatch = app.current.state.store.dispatch; + + dispatch(setAudioOnly(value)); + }, setAudioMuted: muted => { const dispatch = app.current.state.store.dispatch;