|
@@ -4,7 +4,6 @@ import _ from 'lodash';
|
4
|
4
|
import React from 'react';
|
5
|
5
|
import {
|
6
|
6
|
ActivityIndicator,
|
7
|
|
- Alert,
|
8
|
7
|
FlatList,
|
9
|
8
|
KeyboardAvoidingView,
|
10
|
9
|
Platform,
|
|
@@ -14,12 +13,13 @@ import {
|
14
|
13
|
View
|
15
|
14
|
} from 'react-native';
|
16
|
15
|
|
|
16
|
+import { AlertDialog, openDialog } from '../../../../base/dialog';
|
17
|
17
|
import { Icon } from '../../../../base/font-icons';
|
18
|
18
|
import { translate } from '../../../../base/i18n';
|
19
|
19
|
import {
|
20
|
20
|
AvatarListItem,
|
21
|
21
|
HeaderWithNavigation,
|
22
|
|
- Modal,
|
|
22
|
+ SlidingView,
|
23
|
23
|
type Item
|
24
|
24
|
} from '../../../../base/react';
|
25
|
25
|
import { connect } from '../../../../base/redux';
|
|
@@ -149,9 +149,9 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
|
149
|
149
|
}
|
150
|
150
|
|
151
|
151
|
return (
|
152
|
|
- <Modal
|
153
|
|
- onRequestClose = { this._onCloseAddPeopleDialog }
|
154
|
|
- visible = { this.props._isVisible }>
|
|
152
|
+ <SlidingView
|
|
153
|
+ position = 'bottom'
|
|
154
|
+ show = { this.props._isVisible } >
|
155
|
155
|
<HeaderWithNavigation
|
156
|
156
|
forwardDisabled = { this._isAddDisabled() }
|
157
|
157
|
forwardLabelKey = 'inviteDialog.send'
|
|
@@ -196,7 +196,7 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
|
196
|
196
|
style = { styles.resultList } />
|
197
|
197
|
</SafeAreaView>
|
198
|
198
|
</KeyboardAvoidingView>
|
199
|
|
- </Modal>
|
|
199
|
+ </SlidingView>
|
200
|
200
|
);
|
201
|
201
|
}
|
202
|
202
|
|
|
@@ -495,17 +495,11 @@ class AddPeopleDialog extends AbstractAddPeopleDialog<Props, State> {
|
495
|
495
|
* @returns {void}
|
496
|
496
|
*/
|
497
|
497
|
_showFailedInviteAlert() {
|
498
|
|
- const { t } = this.props;
|
499
|
|
-
|
500
|
|
- Alert.alert(
|
501
|
|
- t('inviteDialog.alertTitle'),
|
502
|
|
- t('inviteDialog.alertText'),
|
503
|
|
- [
|
504
|
|
- {
|
505
|
|
- text: t('inviteDialog.alertOk')
|
506
|
|
- }
|
507
|
|
- ]
|
508
|
|
- );
|
|
498
|
+ this.props.dispatch(openDialog(AlertDialog, {
|
|
499
|
+ contentKey: {
|
|
500
|
+ key: 'inviteDialog.alertText'
|
|
501
|
+ }
|
|
502
|
+ }));
|
509
|
503
|
}
|
510
|
504
|
}
|
511
|
505
|
|