|
@@ -4,7 +4,6 @@ import { NavigationContainer } from '@react-navigation/native';
|
4
|
4
|
import { createStackNavigator } from '@react-navigation/stack';
|
5
|
5
|
import React from 'react';
|
6
|
6
|
import { useTranslation } from 'react-i18next';
|
7
|
|
-import { SafeAreaProvider } from 'react-native-safe-area-context';
|
8
|
7
|
import { useSelector } from 'react-redux';
|
9
|
8
|
|
10
|
9
|
import { Chat } from '../../../../../chat';
|
|
@@ -63,81 +62,79 @@ const ConferenceNavigationContainer = () => {
|
63
|
62
|
const { t } = useTranslation();
|
64
|
63
|
|
65
|
64
|
return (
|
66
|
|
- <SafeAreaProvider>
|
67
|
|
- <NavigationContainer
|
68
|
|
- independent = { true }
|
69
|
|
- ref = { conferenceNavigationRef }
|
70
|
|
- theme = { navigationContainerTheme }>
|
71
|
|
- <ConferenceStack.Navigator
|
72
|
|
- initialRouteName = { screen.conference.main }
|
73
|
|
- screenOptions = {{
|
74
|
|
- presentation: 'modal'
|
75
|
|
- }}>
|
76
|
|
- <ConferenceStack.Screen
|
77
|
|
- component = { Conference }
|
78
|
|
- name = { screen.conference.main }
|
79
|
|
- options = { conferenceScreenOptions } />
|
80
|
|
- <ConferenceStack.Screen
|
81
|
|
- component = { ChatScreen }
|
82
|
|
- name = { chatScreenName }
|
83
|
|
- options = {{
|
84
|
|
- ...chatScreenOptions,
|
85
|
|
- title: t(chatTitleString)
|
86
|
|
- }} />
|
87
|
|
- <ConferenceStack.Screen
|
88
|
|
- component = { ParticipantsPane }
|
89
|
|
- name = { screen.conference.participants }
|
90
|
|
- options = {{
|
91
|
|
- ...participantsScreenOptions,
|
92
|
|
- title: t('participantsPane.header')
|
93
|
|
- }} />
|
94
|
|
- <ConferenceStack.Screen
|
95
|
|
- component = { SecurityDialog }
|
96
|
|
- name = { screen.conference.security }
|
97
|
|
- options = {{
|
98
|
|
- ...securityScreenOptions,
|
99
|
|
- title: t('security.header')
|
100
|
|
- }} />
|
101
|
|
- <ConferenceStack.Screen
|
102
|
|
- component = { StartRecordingDialog }
|
103
|
|
- name = { screen.conference.recording }
|
104
|
|
- options = {{
|
105
|
|
- ...recordingScreenOptions
|
106
|
|
- }} />
|
107
|
|
- <ConferenceStack.Screen
|
108
|
|
- component = { StartLiveStreamDialog }
|
109
|
|
- name = { screen.conference.liveStream }
|
110
|
|
- options = {{
|
111
|
|
- ...liveStreamScreenOptions
|
112
|
|
- }} />
|
113
|
|
- <ConferenceStack.Screen
|
114
|
|
- component = { SpeakerStats }
|
115
|
|
- name = { screen.conference.speakerStats }
|
116
|
|
- options = {{
|
117
|
|
- ...speakerStatsScreenOptions,
|
118
|
|
- title: t('speakerStats.speakerStats')
|
119
|
|
- }} />
|
120
|
|
- <ConferenceStack.Screen
|
121
|
|
- component = { LobbyScreen }
|
122
|
|
- name = { screen.lobby }
|
123
|
|
- options = { lobbyScreenOptions } />
|
124
|
|
- <ConferenceStack.Screen
|
125
|
|
- component = { AddPeopleDialog }
|
126
|
|
- name = { screen.conference.invite }
|
127
|
|
- options = {{
|
128
|
|
- ...inviteScreenOptions,
|
129
|
|
- title: t('addPeople.add')
|
130
|
|
- }} />
|
131
|
|
- <ConferenceStack.Screen
|
132
|
|
- component = { SharedDocument }
|
133
|
|
- name = { screen.conference.sharedDocument }
|
134
|
|
- options = {{
|
135
|
|
- ...sharedDocumentScreenOptions,
|
136
|
|
- title: t('documentSharing.title')
|
137
|
|
- }} />
|
138
|
|
- </ConferenceStack.Navigator>
|
139
|
|
- </NavigationContainer>
|
140
|
|
- </SafeAreaProvider>
|
|
65
|
+ <NavigationContainer
|
|
66
|
+ independent = { true }
|
|
67
|
+ ref = { conferenceNavigationRef }
|
|
68
|
+ theme = { navigationContainerTheme }>
|
|
69
|
+ <ConferenceStack.Navigator
|
|
70
|
+ initialRouteName = { screen.conference.main }
|
|
71
|
+ screenOptions = {{
|
|
72
|
+ presentation: 'modal'
|
|
73
|
+ }}>
|
|
74
|
+ <ConferenceStack.Screen
|
|
75
|
+ component = { Conference }
|
|
76
|
+ name = { screen.conference.main }
|
|
77
|
+ options = { conferenceScreenOptions } />
|
|
78
|
+ <ConferenceStack.Screen
|
|
79
|
+ component = { ChatScreen }
|
|
80
|
+ name = { chatScreenName }
|
|
81
|
+ options = {{
|
|
82
|
+ ...chatScreenOptions,
|
|
83
|
+ title: t(chatTitleString)
|
|
84
|
+ }} />
|
|
85
|
+ <ConferenceStack.Screen
|
|
86
|
+ component = { ParticipantsPane }
|
|
87
|
+ name = { screen.conference.participants }
|
|
88
|
+ options = {{
|
|
89
|
+ ...participantsScreenOptions,
|
|
90
|
+ title: t('participantsPane.header')
|
|
91
|
+ }} />
|
|
92
|
+ <ConferenceStack.Screen
|
|
93
|
+ component = { SecurityDialog }
|
|
94
|
+ name = { screen.conference.security }
|
|
95
|
+ options = {{
|
|
96
|
+ ...securityScreenOptions,
|
|
97
|
+ title: t('security.header')
|
|
98
|
+ }} />
|
|
99
|
+ <ConferenceStack.Screen
|
|
100
|
+ component = { StartRecordingDialog }
|
|
101
|
+ name = { screen.conference.recording }
|
|
102
|
+ options = {{
|
|
103
|
+ ...recordingScreenOptions
|
|
104
|
+ }} />
|
|
105
|
+ <ConferenceStack.Screen
|
|
106
|
+ component = { StartLiveStreamDialog }
|
|
107
|
+ name = { screen.conference.liveStream }
|
|
108
|
+ options = {{
|
|
109
|
+ ...liveStreamScreenOptions
|
|
110
|
+ }} />
|
|
111
|
+ <ConferenceStack.Screen
|
|
112
|
+ component = { SpeakerStats }
|
|
113
|
+ name = { screen.conference.speakerStats }
|
|
114
|
+ options = {{
|
|
115
|
+ ...speakerStatsScreenOptions,
|
|
116
|
+ title: t('speakerStats.speakerStats')
|
|
117
|
+ }} />
|
|
118
|
+ <ConferenceStack.Screen
|
|
119
|
+ component = { LobbyScreen }
|
|
120
|
+ name = { screen.lobby }
|
|
121
|
+ options = { lobbyScreenOptions } />
|
|
122
|
+ <ConferenceStack.Screen
|
|
123
|
+ component = { AddPeopleDialog }
|
|
124
|
+ name = { screen.conference.invite }
|
|
125
|
+ options = {{
|
|
126
|
+ ...inviteScreenOptions,
|
|
127
|
+ title: t('addPeople.add')
|
|
128
|
+ }} />
|
|
129
|
+ <ConferenceStack.Screen
|
|
130
|
+ component = { SharedDocument }
|
|
131
|
+ name = { screen.conference.sharedDocument }
|
|
132
|
+ options = {{
|
|
133
|
+ ...sharedDocumentScreenOptions,
|
|
134
|
+ title: t('documentSharing.title')
|
|
135
|
+ }} />
|
|
136
|
+ </ConferenceStack.Navigator>
|
|
137
|
+ </NavigationContainer>
|
141
|
138
|
);
|
142
|
139
|
};
|
143
|
140
|
|