|
|
|
|
@ -4,7 +4,6 @@ import { NavigationContainer } from '@react-navigation/native'; |
|
|
|
|
import { createStackNavigator } from '@react-navigation/stack'; |
|
|
|
|
import React from 'react'; |
|
|
|
|
import { useTranslation } from 'react-i18next'; |
|
|
|
|
import { SafeAreaProvider } from 'react-native-safe-area-context'; |
|
|
|
|
import { useSelector } from 'react-redux'; |
|
|
|
|
|
|
|
|
|
import { Chat } from '../../../../../chat'; |
|
|
|
|
@ -63,81 +62,79 @@ const ConferenceNavigationContainer = () => { |
|
|
|
|
const { t } = useTranslation(); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<SafeAreaProvider> |
|
|
|
|
<NavigationContainer |
|
|
|
|
independent = { true } |
|
|
|
|
ref = { conferenceNavigationRef } |
|
|
|
|
theme = { navigationContainerTheme }> |
|
|
|
|
<ConferenceStack.Navigator |
|
|
|
|
initialRouteName = { screen.conference.main } |
|
|
|
|
screenOptions = {{ |
|
|
|
|
presentation: 'modal' |
|
|
|
|
}}> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { Conference } |
|
|
|
|
name = { screen.conference.main } |
|
|
|
|
options = { conferenceScreenOptions } /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { ChatScreen } |
|
|
|
|
name = { chatScreenName } |
|
|
|
|
options = {{ |
|
|
|
|
...chatScreenOptions, |
|
|
|
|
title: t(chatTitleString) |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { ParticipantsPane } |
|
|
|
|
name = { screen.conference.participants } |
|
|
|
|
options = {{ |
|
|
|
|
...participantsScreenOptions, |
|
|
|
|
title: t('participantsPane.header') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { SecurityDialog } |
|
|
|
|
name = { screen.conference.security } |
|
|
|
|
options = {{ |
|
|
|
|
...securityScreenOptions, |
|
|
|
|
title: t('security.header') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { StartRecordingDialog } |
|
|
|
|
name = { screen.conference.recording } |
|
|
|
|
options = {{ |
|
|
|
|
...recordingScreenOptions |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { StartLiveStreamDialog } |
|
|
|
|
name = { screen.conference.liveStream } |
|
|
|
|
options = {{ |
|
|
|
|
...liveStreamScreenOptions |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { SpeakerStats } |
|
|
|
|
name = { screen.conference.speakerStats } |
|
|
|
|
options = {{ |
|
|
|
|
...speakerStatsScreenOptions, |
|
|
|
|
title: t('speakerStats.speakerStats') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { LobbyScreen } |
|
|
|
|
name = { screen.lobby } |
|
|
|
|
options = { lobbyScreenOptions } /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { AddPeopleDialog } |
|
|
|
|
name = { screen.conference.invite } |
|
|
|
|
options = {{ |
|
|
|
|
...inviteScreenOptions, |
|
|
|
|
title: t('addPeople.add') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { SharedDocument } |
|
|
|
|
name = { screen.conference.sharedDocument } |
|
|
|
|
options = {{ |
|
|
|
|
...sharedDocumentScreenOptions, |
|
|
|
|
title: t('documentSharing.title') |
|
|
|
|
}} /> |
|
|
|
|
</ConferenceStack.Navigator> |
|
|
|
|
</NavigationContainer> |
|
|
|
|
</SafeAreaProvider> |
|
|
|
|
<NavigationContainer |
|
|
|
|
independent = { true } |
|
|
|
|
ref = { conferenceNavigationRef } |
|
|
|
|
theme = { navigationContainerTheme }> |
|
|
|
|
<ConferenceStack.Navigator |
|
|
|
|
initialRouteName = { screen.conference.main } |
|
|
|
|
screenOptions = {{ |
|
|
|
|
presentation: 'modal' |
|
|
|
|
}}> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { Conference } |
|
|
|
|
name = { screen.conference.main } |
|
|
|
|
options = { conferenceScreenOptions } /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { ChatScreen } |
|
|
|
|
name = { chatScreenName } |
|
|
|
|
options = {{ |
|
|
|
|
...chatScreenOptions, |
|
|
|
|
title: t(chatTitleString) |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { ParticipantsPane } |
|
|
|
|
name = { screen.conference.participants } |
|
|
|
|
options = {{ |
|
|
|
|
...participantsScreenOptions, |
|
|
|
|
title: t('participantsPane.header') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { SecurityDialog } |
|
|
|
|
name = { screen.conference.security } |
|
|
|
|
options = {{ |
|
|
|
|
...securityScreenOptions, |
|
|
|
|
title: t('security.header') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { StartRecordingDialog } |
|
|
|
|
name = { screen.conference.recording } |
|
|
|
|
options = {{ |
|
|
|
|
...recordingScreenOptions |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { StartLiveStreamDialog } |
|
|
|
|
name = { screen.conference.liveStream } |
|
|
|
|
options = {{ |
|
|
|
|
...liveStreamScreenOptions |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { SpeakerStats } |
|
|
|
|
name = { screen.conference.speakerStats } |
|
|
|
|
options = {{ |
|
|
|
|
...speakerStatsScreenOptions, |
|
|
|
|
title: t('speakerStats.speakerStats') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { LobbyScreen } |
|
|
|
|
name = { screen.lobby } |
|
|
|
|
options = { lobbyScreenOptions } /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { AddPeopleDialog } |
|
|
|
|
name = { screen.conference.invite } |
|
|
|
|
options = {{ |
|
|
|
|
...inviteScreenOptions, |
|
|
|
|
title: t('addPeople.add') |
|
|
|
|
}} /> |
|
|
|
|
<ConferenceStack.Screen |
|
|
|
|
component = { SharedDocument } |
|
|
|
|
name = { screen.conference.sharedDocument } |
|
|
|
|
options = {{ |
|
|
|
|
...sharedDocumentScreenOptions, |
|
|
|
|
title: t('documentSharing.title') |
|
|
|
|
}} /> |
|
|
|
|
</ConferenceStack.Navigator> |
|
|
|
|
</NavigationContainer> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|