@smart-link/rn-im 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/assets/avatars-busi-notify.png +0 -0
- package/assets/avatars-empty.png +0 -0
- package/assets/avatars-group.jpg +0 -0
- package/assets/avatars-man.jpg +0 -0
- package/assets/avatars-woman.jpg +0 -0
- package/assets/cloud-backup-begin.png +0 -0
- package/assets/cloud-backup.png +0 -0
- package/assets/group-mgr.png +0 -0
- package/assets/group-owner.png +0 -0
- package/assets/hook-black-double.png +0 -0
- package/assets/hook-black.png +0 -0
- package/assets/hook-blue-double.png +0 -0
- package/assets/hook-blue.png +0 -0
- package/assets/hook-green.png +0 -0
- package/assets/no_message.png +0 -0
- package/assets/share.jpeg +0 -0
- package/assets/voice-left-playing.gif +0 -0
- package/assets/voice-left.png +0 -0
- package/dist/api/addressList.d.ts +27 -0
- package/dist/api/addressList.js +18 -0
- package/dist/api/backup.d.ts +18 -0
- package/dist/api/backup.js +29 -0
- package/dist/api/file.d.ts +4 -0
- package/dist/api/file.js +49 -0
- package/dist/api/user.d.ts +8 -0
- package/dist/api/user.js +16 -0
- package/dist/components/CachedImage.d.ts +11 -0
- package/dist/components/CachedImage.js +48 -0
- package/dist/components/Camera/Camera.d.ts +10 -0
- package/dist/components/Camera/Camera.js +100 -0
- package/dist/components/Camera/CameraCapture.d.ts +32 -0
- package/dist/components/Camera/CameraCapture.js +360 -0
- package/dist/components/Camera/CameraResult.d.ts +11 -0
- package/dist/components/Camera/CameraResult.js +102 -0
- package/dist/components/ChatAvatar/ChatAvatar.d.ts +15 -0
- package/dist/components/ChatAvatar/ChatAvatar.js +134 -0
- package/dist/components/ChatAvatar/ChatAvatarId.d.ts +8 -0
- package/dist/components/ChatAvatar/ChatAvatarId.js +92 -0
- package/dist/components/ChatAvatar/ChatAvatarLocal.d.ts +9 -0
- package/dist/components/ChatAvatar/ChatAvatarLocal.js +76 -0
- package/dist/components/ChatAvatar/index.d.ts +2 -0
- package/dist/components/ChatAvatar/index.js +23 -0
- package/dist/components/Favicon.d.ts +7 -0
- package/dist/components/Favicon.js +74 -0
- package/dist/components/FormatTimeText.d.ts +8 -0
- package/dist/components/FormatTimeText.js +24 -0
- package/dist/components/Highlighter.d.ts +9 -0
- package/dist/components/Highlighter.js +42 -0
- package/dist/components/IndicatorText.d.ts +10 -0
- package/dist/components/IndicatorText.js +47 -0
- package/dist/components/LocalImage.d.ts +10 -0
- package/dist/components/LocalImage.js +37 -0
- package/dist/components/NetworkUnconnected.d.ts +3 -0
- package/dist/components/NetworkUnconnected.js +55 -0
- package/dist/components/PopoverWrapper.d.ts +13 -0
- package/dist/components/PopoverWrapper.js +78 -0
- package/dist/components/VideoPlayer.d.ts +13 -0
- package/dist/components/VideoPlayer.js +288 -0
- package/dist/components/styles.d.ts +19 -0
- package/dist/components/styles.js +23 -0
- package/dist/default-assets.d.ts +18 -0
- package/dist/default-assets.js +22 -0
- package/dist/hooks/useFormatMsgTime.d.ts +4 -0
- package/dist/hooks/useFormatMsgTime.js +53 -0
- package/dist/hooks/useImSelector.d.ts +15 -0
- package/dist/hooks/useImSelector.js +48 -0
- package/dist/hooks/useTranslation.d.ts +13 -0
- package/dist/hooks/useTranslation.js +12 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +28 -0
- package/dist/init.d.ts +17 -0
- package/dist/init.js +116 -0
- package/dist/interface.d.ts +47 -0
- package/dist/interface.js +2 -0
- package/dist/locales/en/addressList.d.ts +3 -0
- package/dist/locales/en/addressList.js +31 -0
- package/dist/locales/index.d.ts +4 -0
- package/dist/locales/index.js +27 -0
- package/dist/locales/lao/addressList.d.ts +3 -0
- package/dist/locales/lao/addressList.js +31 -0
- package/dist/locales/zh/addressList.d.ts +30 -0
- package/dist/locales/zh/addressList.js +32 -0
- package/dist/pages/address-list/AddressList.d.ts +6 -0
- package/dist/pages/address-list/AddressList.js +158 -0
- package/dist/pages/address-list/CardInfo.d.ts +15 -0
- package/dist/pages/address-list/CardInfo.js +42 -0
- package/dist/pages/address-list/ChooseContact.d.ts +6 -0
- package/dist/pages/address-list/ChooseContact.js +197 -0
- package/dist/pages/address-list/Icons.d.ts +5 -0
- package/dist/pages/address-list/Icons.js +16 -0
- package/dist/pages/address-list/Organization.d.ts +13 -0
- package/dist/pages/address-list/Organization.js +221 -0
- package/dist/pages/address-list/UserDetail.d.ts +6 -0
- package/dist/pages/address-list/UserDetail.js +131 -0
- package/dist/pages/address-list/UserJobs.d.ts +6 -0
- package/dist/pages/address-list/UserJobs.js +50 -0
- package/dist/pages/address-list/UserSearch.d.ts +6 -0
- package/dist/pages/address-list/UserSearch.js +82 -0
- package/dist/pages/address-list/addressList.routes.d.ts +50 -0
- package/dist/pages/address-list/addressList.routes.js +50 -0
- package/dist/pages/collection/Collection.d.ts +3 -0
- package/dist/pages/collection/Collection.js +136 -0
- package/dist/pages/collection/ContentFactory.d.ts +6 -0
- package/dist/pages/collection/ContentFactory.js +167 -0
- package/dist/pages/collection/collection.routes.d.ts +9 -0
- package/dist/pages/collection/collection.routes.js +17 -0
- package/dist/pages/conversation/ForwardToConversation.d.ts +6 -0
- package/dist/pages/conversation/ForwardToConversation.js +172 -0
- package/dist/pages/conversation/List.d.ts +6 -0
- package/dist/pages/conversation/List.js +204 -0
- package/dist/pages/conversation/components/ConversationCard.d.ts +12 -0
- package/dist/pages/conversation/components/ConversationCard.js +142 -0
- package/dist/pages/conversation/components/ConversationOption.d.ts +11 -0
- package/dist/pages/conversation/components/ConversationOption.js +99 -0
- package/dist/pages/conversation/conversation.routes.d.ts +2 -0
- package/dist/pages/conversation/conversation.routes.js +74 -0
- package/dist/pages/conversation/setting/GroupTransfer.d.ts +6 -0
- package/dist/pages/conversation/setting/GroupTransfer.js +88 -0
- package/dist/pages/conversation/setting/OptionAvatars.d.ts +22 -0
- package/dist/pages/conversation/setting/OptionAvatars.js +152 -0
- package/dist/pages/conversation/setting/OptionCancelGroup.d.ts +6 -0
- package/dist/pages/conversation/setting/OptionCancelGroup.js +49 -0
- package/dist/pages/conversation/setting/OptionConversation.d.ts +19 -0
- package/dist/pages/conversation/setting/OptionConversation.js +71 -0
- package/dist/pages/conversation/setting/OptionGroup.d.ts +17 -0
- package/dist/pages/conversation/setting/OptionGroup.js +76 -0
- package/dist/pages/conversation/setting/OptionGroupManage.d.ts +6 -0
- package/dist/pages/conversation/setting/OptionGroupManage.js +68 -0
- package/dist/pages/conversation/setting/OptionGroupMoreMember.d.ts +4 -0
- package/dist/pages/conversation/setting/OptionGroupMoreMember.js +124 -0
- package/dist/pages/conversation/setting/OptionGroupNameOrNoticeEdit.d.ts +6 -0
- package/dist/pages/conversation/setting/OptionGroupNameOrNoticeEdit.js +149 -0
- package/dist/pages/conversation/setting/Setting.d.ts +6 -0
- package/dist/pages/conversation/setting/Setting.js +184 -0
- package/dist/pages/conversation/setting/SettingChatBg.d.ts +6 -0
- package/dist/pages/conversation/setting/SettingChatBg.js +95 -0
- package/dist/pages/index.d.ts +8 -0
- package/dist/pages/index.js +27 -0
- package/dist/pages/message/ChooseMember.d.ts +6 -0
- package/dist/pages/message/ChooseMember.js +185 -0
- package/dist/pages/message/MessageBackup/Bar.d.ts +8 -0
- package/dist/pages/message/MessageBackup/Bar.js +77 -0
- package/dist/pages/message/MessageBackup/MessageBackup.d.ts +10 -0
- package/dist/pages/message/MessageBackup/MessageBackup.js +133 -0
- package/dist/pages/message/MessageBackup/RestoreBackupPage.d.ts +6 -0
- package/dist/pages/message/MessageBackup/RestoreBackupPage.js +135 -0
- package/dist/pages/message/MessageBackup/StartBackupPage.d.ts +6 -0
- package/dist/pages/message/MessageBackup/StartBackupPage.js +135 -0
- package/dist/pages/message/MessageBackup/index.d.ts +3 -0
- package/dist/pages/message/MessageBackup/index.js +12 -0
- package/dist/pages/message/MessageBackup/utils.d.ts +46 -0
- package/dist/pages/message/MessageBackup/utils.js +239 -0
- package/dist/pages/message/MessageList.d.ts +6 -0
- package/dist/pages/message/MessageList.js +175 -0
- package/dist/pages/message/MessageRecord.d.ts +6 -0
- package/dist/pages/message/MessageRecord.js +97 -0
- package/dist/pages/message/components/BusiNotifyCard.d.ts +6 -0
- package/dist/pages/message/components/BusiNotifyCard.js +132 -0
- package/dist/pages/message/components/ChatBg.d.ts +7 -0
- package/dist/pages/message/components/ChatBg.js +65 -0
- package/dist/pages/message/components/MessageItem.d.ts +16 -0
- package/dist/pages/message/components/MessageItem.js +205 -0
- package/dist/pages/message/components/MessageItemQuote.d.ts +7 -0
- package/dist/pages/message/components/MessageItemQuote.js +83 -0
- package/dist/pages/message/components/MessageItemTips.d.ts +9 -0
- package/dist/pages/message/components/MessageItemTips.js +67 -0
- package/dist/pages/message/components/MessageOption.d.ts +11 -0
- package/dist/pages/message/components/MessageOption.js +360 -0
- package/dist/pages/message/components/MessagePayload.d.ts +14 -0
- package/dist/pages/message/components/MessagePayload.js +96 -0
- package/dist/pages/message/components/MessagePictureAlbum.d.ts +10 -0
- package/dist/pages/message/components/MessagePictureAlbum.js +105 -0
- package/dist/pages/message/components/MessageReceiptStatus.d.ts +6 -0
- package/dist/pages/message/components/MessageReceiptStatus.js +61 -0
- package/dist/pages/message/components/MessageUndo.d.ts +10 -0
- package/dist/pages/message/components/MessageUndo.js +75 -0
- package/dist/pages/message/components/MultipleBar/index.d.ts +5 -0
- package/dist/pages/message/components/MultipleBar/index.js +116 -0
- package/dist/pages/message/components/Payload/PayloadContact.d.ts +4 -0
- package/dist/pages/message/components/Payload/PayloadContact.js +86 -0
- package/dist/pages/message/components/Payload/PayloadFile.d.ts +4 -0
- package/dist/pages/message/components/Payload/PayloadFile.js +115 -0
- package/dist/pages/message/components/Payload/PayloadMultiple.d.ts +4 -0
- package/dist/pages/message/components/Payload/PayloadMultiple.js +102 -0
- package/dist/pages/message/components/Payload/PayloadNotify.d.ts +9 -0
- package/dist/pages/message/components/Payload/PayloadNotify.js +92 -0
- package/dist/pages/message/components/Payload/PayloadPicture.d.ts +7 -0
- package/dist/pages/message/components/Payload/PayloadPicture.js +69 -0
- package/dist/pages/message/components/Payload/PayloadShare.d.ts +4 -0
- package/dist/pages/message/components/Payload/PayloadShare.js +100 -0
- package/dist/pages/message/components/Payload/PayloadText.d.ts +4 -0
- package/dist/pages/message/components/Payload/PayloadText.js +128 -0
- package/dist/pages/message/components/Payload/PayloadVideo.d.ts +4 -0
- package/dist/pages/message/components/Payload/PayloadVideo.js +78 -0
- package/dist/pages/message/components/Payload/PayloadVoice.d.ts +6 -0
- package/dist/pages/message/components/Payload/PayloadVoice.js +155 -0
- package/dist/pages/message/components/Payload/PayloadWrapper.d.ts +12 -0
- package/dist/pages/message/components/Payload/PayloadWrapper.js +73 -0
- package/dist/pages/message/components/Payload/type.d.ts +9 -0
- package/dist/pages/message/components/Payload/type.js +2 -0
- package/dist/pages/message/components/ReceiptBack.d.ts +7 -0
- package/dist/pages/message/components/ReceiptBack.js +82 -0
- package/dist/pages/message/components/TextMixMessage.d.ts +9 -0
- package/dist/pages/message/components/TextMixMessage.js +62 -0
- package/dist/pages/message/components/TextMixQuote.d.ts +61 -0
- package/dist/pages/message/components/TextMixQuote.js +276 -0
- package/dist/pages/message/components/TextMixQuoteMessage.d.ts +14 -0
- package/dist/pages/message/components/TextMixQuoteMessage.js +74 -0
- package/dist/pages/message/components/UploadProgress.d.ts +9 -0
- package/dist/pages/message/components/UploadProgress.js +51 -0
- package/dist/pages/message/components/messageBar/EmojiPanel.d.ts +11 -0
- package/dist/pages/message/components/messageBar/EmojiPanel.js +101 -0
- package/dist/pages/message/components/messageBar/Icons.d.ts +18 -0
- package/dist/pages/message/components/messageBar/Icons.js +88 -0
- package/dist/pages/message/components/messageBar/MessageBar.d.ts +12 -0
- package/dist/pages/message/components/messageBar/MessageBar.js +273 -0
- package/dist/pages/message/components/messageBar/MessageInput.d.ts +21 -0
- package/dist/pages/message/components/messageBar/MessageInput.js +203 -0
- package/dist/pages/message/components/messageBar/OptionPanel.d.ts +8 -0
- package/dist/pages/message/components/messageBar/OptionPanel.js +240 -0
- package/dist/pages/message/components/messageBar/VoiceBar.d.ts +3 -0
- package/dist/pages/message/components/messageBar/VoiceBar.js +272 -0
- package/dist/pages/message/components/messageBar/index.d.ts +2 -0
- package/dist/pages/message/components/messageBar/index.js +23 -0
- package/dist/pages/message/message.routes.d.ts +2 -0
- package/dist/pages/message/message.routes.js +79 -0
- package/dist/pages/search/Search.d.ts +6 -0
- package/dist/pages/search/Search.js +84 -0
- package/dist/pages/search/SearchChatRecords.d.ts +3 -0
- package/dist/pages/search/SearchChatRecords.js +173 -0
- package/dist/pages/search/SearchFile.d.ts +3 -0
- package/dist/pages/search/SearchFile.js +202 -0
- package/dist/pages/search/SearchManager.d.ts +6 -0
- package/dist/pages/search/SearchManager.js +111 -0
- package/dist/pages/search/SearchPicturePage.d.ts +6 -0
- package/dist/pages/search/SearchPicturePage.js +56 -0
- package/dist/pages/search/components/ChatRecords.d.ts +6 -0
- package/dist/pages/search/components/ChatRecords.js +151 -0
- package/dist/pages/search/components/MyGroupChat.d.ts +6 -0
- package/dist/pages/search/components/MyGroupChat.js +128 -0
- package/dist/pages/search/components/PictureMulipleBar.d.ts +10 -0
- package/dist/pages/search/components/PictureMulipleBar.js +105 -0
- package/dist/pages/search/components/SearchFileList.d.ts +7 -0
- package/dist/pages/search/components/SearchFileList.js +173 -0
- package/dist/pages/search/components/SearchPictures.d.ts +8 -0
- package/dist/pages/search/components/SearchPictures.js +220 -0
- package/dist/pages/search/components/SearchShareLinkList.d.ts +7 -0
- package/dist/pages/search/components/SearchShareLinkList.js +112 -0
- package/dist/pages/search/components/SearchUser.d.ts +6 -0
- package/dist/pages/search/components/SearchUser.js +83 -0
- package/dist/pages/search/components/useSearchMessage.d.ts +11 -0
- package/dist/pages/search/components/useSearchMessage.js +68 -0
- package/dist/pages/search/search.routes.d.ts +2 -0
- package/dist/pages/search/search.routes.js +48 -0
- package/dist/pages/search/utils.d.ts +12 -0
- package/dist/pages/search/utils.js +42 -0
- package/dist/pages/types.d.ts +70 -0
- package/dist/pages/types.js +2 -0
- package/dist/slice/contact/contact.action.d.ts +1 -0
- package/dist/slice/contact/contact.action.js +2 -0
- package/dist/slice/contact/contact.slice.d.ts +12 -0
- package/dist/slice/contact/contact.slice.js +60 -0
- package/dist/slice/index.d.ts +9 -0
- package/dist/slice/index.js +15 -0
- package/dist/slice/panel/panel.slice.d.ts +8 -0
- package/dist/slice/panel/panel.slice.js +19 -0
- package/dist/slice/video/video.action.d.ts +5 -0
- package/dist/slice/video/video.action.js +65 -0
- package/dist/slice/video/video.slice.d.ts +17 -0
- package/dist/slice/video/video.slice.js +40 -0
- package/dist/utils/color.d.ts +1 -0
- package/dist/utils/color.js +9 -0
- package/dist/utils/common-action-sheet.d.ts +8 -0
- package/dist/utils/common-action-sheet.js +45 -0
- package/dist/utils/cookie.d.ts +1 -0
- package/dist/utils/cookie.js +29 -0
- package/dist/utils/emoji.d.ts +9 -0
- package/dist/utils/emoji.js +627 -0
- package/dist/utils/file-icon.d.ts +7 -0
- package/dist/utils/file-icon.js +80 -0
- package/dist/utils/file-operate.d.ts +1 -0
- package/dist/utils/file-operate.js +4 -0
- package/dist/utils/file.d.ts +23 -0
- package/dist/utils/file.js +255 -0
- package/dist/utils/golden-rectangle.d.ts +4 -0
- package/dist/utils/golden-rectangle.js +34 -0
- package/dist/utils/phone.d.ts +2 -0
- package/dist/utils/phone.js +24 -0
- package/dist/utils/request.d.ts +34 -0
- package/dist/utils/request.js +67 -0
- package/dist/utils/scroll.d.ts +1 -0
- package/dist/utils/scroll.js +12 -0
- package/dist/utils/summary.d.ts +2 -0
- package/dist/utils/summary.js +42 -0
- package/dist/utils/take-camera.d.ts +2 -0
- package/dist/utils/take-camera.js +41 -0
- package/dist/utils/text-mix.d.ts +9 -0
- package/dist/utils/text-mix.js +82 -0
- package/dist/utils/upload.d.ts +5 -0
- package/dist/utils/upload.js +80 -0
- package/package.json +79 -0
package/dist/init.js
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.getLogo = exports.getImManager = exports.initRequest = exports.initImSdk = void 0;
|
16
|
+
const im_base_1 = require("@smart-link/im-base");
|
17
|
+
const react_native_1 = require("react-native");
|
18
|
+
const react_native_sqlite_storage_1 = __importDefault(require("react-native-sqlite-storage"));
|
19
|
+
const request_1 = require("./utils/request");
|
20
|
+
const default_assets_1 = require("./default-assets");
|
21
|
+
const upload_1 = __importDefault(require("./utils/upload"));
|
22
|
+
const file_1 = require("./utils/file");
|
23
|
+
const rn_ui_1 = require("@smart-link/rn-ui");
|
24
|
+
const lodash_es_1 = require("lodash-es");
|
25
|
+
let imManager;
|
26
|
+
let logo;
|
27
|
+
const initImSdk = ({ user, storage, store, server, logo: outLogo, t, logout, undoLimitTime }) => __awaiter(void 0, void 0, void 0, function* () {
|
28
|
+
console.log('initImSdk: ', server);
|
29
|
+
logo = outLogo;
|
30
|
+
if (imManager && !imManager.isDestroyed()) {
|
31
|
+
return imManager;
|
32
|
+
}
|
33
|
+
// 初始化目录
|
34
|
+
yield (0, file_1.initDir)(user);
|
35
|
+
// 初始化数据库
|
36
|
+
const db = new im_base_1.DBAdapter(new im_base_1.SqliteStorage(react_native_sqlite_storage_1.default));
|
37
|
+
yield db.createStores(user.userId);
|
38
|
+
imManager = new im_base_1.ImManager({
|
39
|
+
db,
|
40
|
+
store,
|
41
|
+
storage,
|
42
|
+
server: server,
|
43
|
+
namespace: '/chat',
|
44
|
+
user: (0, lodash_es_1.cloneDeep)(user),
|
45
|
+
platform: react_native_1.Platform.OS === 'ios' ? im_base_1.Platform.IOS : im_base_1.Platform.ANDROID,
|
46
|
+
t,
|
47
|
+
undoLimitTime: undoLimitTime || 1000 * 60 * 5,
|
48
|
+
defaultAvatars: default_assets_1.defaultAvatars,
|
49
|
+
logout,
|
50
|
+
uploadFile: (file, onProgress) => {
|
51
|
+
return (0, upload_1.default)(file.localPath, file.type, onProgress);
|
52
|
+
},
|
53
|
+
beforeUpload: (payload, payloadType) => __awaiter(void 0, void 0, void 0, function* () {
|
54
|
+
const file = payload;
|
55
|
+
if (payloadType === im_base_1.PayloadType.VIDEO) {
|
56
|
+
if (!file.imageFileId) {
|
57
|
+
file.imageFileId = yield (0, upload_1.default)(file.imagePath, 'image/jpg');
|
58
|
+
}
|
59
|
+
return file;
|
60
|
+
}
|
61
|
+
if (payload.fileId) {
|
62
|
+
return payload;
|
63
|
+
}
|
64
|
+
return payload;
|
65
|
+
}),
|
66
|
+
download: file_1.download,
|
67
|
+
toast(message, type) {
|
68
|
+
console.log('toast: ', message, type);
|
69
|
+
if (type === 'success') {
|
70
|
+
rn_ui_1.Toast.success(message);
|
71
|
+
}
|
72
|
+
else if (type === 'fail') {
|
73
|
+
rn_ui_1.Toast.error(message);
|
74
|
+
}
|
75
|
+
else {
|
76
|
+
rn_ui_1.Toast.info(message);
|
77
|
+
}
|
78
|
+
},
|
79
|
+
scrollToLatest(animated) {
|
80
|
+
var _a;
|
81
|
+
console.log('scrollToLatest: ', animated);
|
82
|
+
const flatList = (_a = imManager.flatListRef) === null || _a === void 0 ? void 0 : _a.current;
|
83
|
+
if (flatList) {
|
84
|
+
flatList.scrollToOffset({ animated, offset: 0 });
|
85
|
+
}
|
86
|
+
},
|
87
|
+
scrollTo(messageSeq, animated) {
|
88
|
+
var _a;
|
89
|
+
const flatList = (_a = imManager.flatListRef) === null || _a === void 0 ? void 0 : _a.current;
|
90
|
+
const { messages } = imManager.store.getState()['chat/message'];
|
91
|
+
if (flatList) {
|
92
|
+
if (!messages.length) {
|
93
|
+
return;
|
94
|
+
}
|
95
|
+
const index = messages.findIndex(item => item.messageSeq === messageSeq);
|
96
|
+
console.log('scrollTo: ', messageSeq, index);
|
97
|
+
if (index > -1) {
|
98
|
+
flatList.scrollToIndex({
|
99
|
+
animated,
|
100
|
+
index: index,
|
101
|
+
});
|
102
|
+
}
|
103
|
+
}
|
104
|
+
},
|
105
|
+
});
|
106
|
+
return imManager;
|
107
|
+
});
|
108
|
+
exports.initImSdk = initImSdk;
|
109
|
+
const initRequest = (server) => {
|
110
|
+
(0, request_1.createRequest)(server);
|
111
|
+
};
|
112
|
+
exports.initRequest = initRequest;
|
113
|
+
const getImManager = () => imManager;
|
114
|
+
exports.getImManager = getImManager;
|
115
|
+
const getLogo = () => logo;
|
116
|
+
exports.getLogo = getLogo;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
export type IGroupCategory = {
|
2
|
+
groupCategoryId: string;
|
3
|
+
groupCategoryName: string;
|
4
|
+
appType: string;
|
5
|
+
deleteFlag: string;
|
6
|
+
groupCategorySort: string;
|
7
|
+
groupCategoryStatus: string;
|
8
|
+
groupCategoryType: string;
|
9
|
+
groupRootIds: string;
|
10
|
+
};
|
11
|
+
export type IGroup = {
|
12
|
+
groupId: string;
|
13
|
+
groupName: string;
|
14
|
+
groupType: string;
|
15
|
+
relatedGroupId?: string;
|
16
|
+
relatedGroupName: string;
|
17
|
+
parentId: string;
|
18
|
+
groupSort: string;
|
19
|
+
groupStatus: string;
|
20
|
+
groupIdPath: string;
|
21
|
+
groupNamePath: string;
|
22
|
+
rootGroupId: string;
|
23
|
+
rootGroupName: string;
|
24
|
+
remarks: string;
|
25
|
+
deleteFlag: string;
|
26
|
+
thirdPartyId: string;
|
27
|
+
area?: string;
|
28
|
+
groupCode?: string;
|
29
|
+
groupNameEn?: string;
|
30
|
+
tenantId: string;
|
31
|
+
creatorId: string;
|
32
|
+
creatorName: string;
|
33
|
+
modifierId: string;
|
34
|
+
modifierName: string;
|
35
|
+
gmtCreate: string;
|
36
|
+
gmtModify: string;
|
37
|
+
canManage: boolean;
|
38
|
+
modifyGroupPath: boolean;
|
39
|
+
childCount: number;
|
40
|
+
groupCategoryId?: string;
|
41
|
+
childList: IGroup[];
|
42
|
+
userList: any[];
|
43
|
+
extFieldValueVOList: any[];
|
44
|
+
extFieldValues?: string;
|
45
|
+
parent: boolean;
|
46
|
+
userCount: number;
|
47
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const locale = {
|
4
|
+
search: 'Search',
|
5
|
+
addressList: 'Address Book',
|
6
|
+
groupChat: 'Group Chat',
|
7
|
+
orgStructure: 'Department Structure',
|
8
|
+
myOrg: 'My Department',
|
9
|
+
myFriend: 'My Friends',
|
10
|
+
myGroups: 'My Groups',
|
11
|
+
selectContacts: 'Select Contacts',
|
12
|
+
contact: 'Contact',
|
13
|
+
selectByDepartments: 'Select By Departments',
|
14
|
+
byDepartments: 'By Departments',
|
15
|
+
selectByCharacters: 'Select By Characters',
|
16
|
+
byCharacters: 'By Characters',
|
17
|
+
addingGroupMembers: 'Adding group members...',
|
18
|
+
creatingGroup: 'A group chat is being initiated...',
|
19
|
+
userDetail: 'User Detail',
|
20
|
+
noData: 'No Data',
|
21
|
+
loading: 'Loading...',
|
22
|
+
requestFail: 'Request Failure',
|
23
|
+
userCode: 'Employee No.',
|
24
|
+
noAdd: 'Not Added',
|
25
|
+
mobile: 'Mobile Number',
|
26
|
+
email: 'Email',
|
27
|
+
sendNews: 'Send Message',
|
28
|
+
job: 'Job',
|
29
|
+
otherJob: 'Other Job',
|
30
|
+
};
|
31
|
+
exports.default = locale;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
|
+
};
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
+
exports.addressListLao = exports.addressListEn = exports.addressListZh = void 0;
|
21
|
+
var addressList_1 = require("./zh/addressList");
|
22
|
+
Object.defineProperty(exports, "addressListZh", { enumerable: true, get: function () { return __importDefault(addressList_1).default; } });
|
23
|
+
var addressList_2 = require("./en/addressList");
|
24
|
+
Object.defineProperty(exports, "addressListEn", { enumerable: true, get: function () { return __importDefault(addressList_2).default; } });
|
25
|
+
var addressList_3 = require("./lao/addressList");
|
26
|
+
Object.defineProperty(exports, "addressListLao", { enumerable: true, get: function () { return __importDefault(addressList_3).default; } });
|
27
|
+
__exportStar(require("./zh/addressList"), exports);
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const locale = {
|
4
|
+
search: 'Search',
|
5
|
+
addressList: 'ລາຍຊື່ການຕິດຕໍ່',
|
6
|
+
groupChat: 'ກຸ່ມ',
|
7
|
+
orgStructure: 'ໂຄງຮ່າງອົງການຈັດຕັ້ງ',
|
8
|
+
myOrg: 'ການຈັດຕັ້ງຂອງຂ້ອຍ',
|
9
|
+
myFriend: 'ໝູ່ຂອງຂ້ອຍ',
|
10
|
+
myGroups: 'ກຸ່ມຂອງຂ້ອຍ',
|
11
|
+
selectContacts: 'ເລືອກຜູ້ຕິດຕໍ່',
|
12
|
+
contact: 'ຜູ້ຕິດຕໍ່',
|
13
|
+
selectByDepartments: 'ເລືອກຈາກພະແນກ',
|
14
|
+
byDepartments: 'ຈາກພະແນກ',
|
15
|
+
selectByCharacters: 'ເລືອກຈາກຕົວອັກສອນ',
|
16
|
+
byCharacters: 'ຈາກຕົວອັກສອນ',
|
17
|
+
addingGroupMembers: 'ກຳລັງເພີ່ມສະມາຊິກ',
|
18
|
+
creatingGroup: 'ກຸ່ມສົນທະນາກຳລັງລິເລີ່ມ',
|
19
|
+
userDetail: 'User Detail',
|
20
|
+
noData: 'ບໍ່ມີຂໍມູນ',
|
21
|
+
loading: 'ກຳລັງໂຫຼດ',
|
22
|
+
requestFail: 'ຮ້ອງຂໍລົ້ມເຫຼວ',
|
23
|
+
userCode: 'ເລກທີຂອງພະນັກງານ',
|
24
|
+
noAdd: 'ຍັງບໍ່ໄດ້ເພີ່ມ',
|
25
|
+
mobile: 'ໂທລະສັບ',
|
26
|
+
email: 'Email',
|
27
|
+
sendNews: 'ສົ່ງຂໍ້ຄວາມ',
|
28
|
+
job: 'Job',
|
29
|
+
otherJob: 'Other Job',
|
30
|
+
};
|
31
|
+
exports.default = locale;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare const locale: {
|
2
|
+
search: string;
|
3
|
+
addressList: string;
|
4
|
+
groupChat: string;
|
5
|
+
orgStructure: string;
|
6
|
+
myOrg: string;
|
7
|
+
myFriend: string;
|
8
|
+
myGroups: string;
|
9
|
+
selectContacts: string;
|
10
|
+
contact: string;
|
11
|
+
byDepartments: string;
|
12
|
+
selectByDepartments: string;
|
13
|
+
byCharacters: string;
|
14
|
+
selectByCharacters: string;
|
15
|
+
addingGroupMembers: string;
|
16
|
+
creatingGroup: string;
|
17
|
+
userDetail: string;
|
18
|
+
noData: string;
|
19
|
+
loading: string;
|
20
|
+
requestFail: string;
|
21
|
+
userCode: string;
|
22
|
+
noAdd: string;
|
23
|
+
mobile: string;
|
24
|
+
email: string;
|
25
|
+
sendNews: string;
|
26
|
+
job: string;
|
27
|
+
otherJob: string;
|
28
|
+
};
|
29
|
+
export type AddressListLocaleKey = keyof typeof locale;
|
30
|
+
export default locale;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
// ui 国际化语言
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const locale = {
|
5
|
+
search: '搜索',
|
6
|
+
addressList: '通讯录',
|
7
|
+
groupChat: '群聊',
|
8
|
+
orgStructure: '组织架构',
|
9
|
+
myOrg: '我的部门',
|
10
|
+
myFriend: '我的好友',
|
11
|
+
myGroups: '我的群组',
|
12
|
+
selectContacts: '选择联系人',
|
13
|
+
contact: '联系人',
|
14
|
+
byDepartments: '按组织',
|
15
|
+
selectByDepartments: '按组织选择',
|
16
|
+
byCharacters: '按角色',
|
17
|
+
selectByCharacters: '按角色选择',
|
18
|
+
addingGroupMembers: '正在添加群成员...',
|
19
|
+
creatingGroup: '正在发起群聊...',
|
20
|
+
userDetail: '用户详情',
|
21
|
+
noData: '暂无数据',
|
22
|
+
loading: '加载中...',
|
23
|
+
requestFail: '请求失败',
|
24
|
+
userCode: '员工编号',
|
25
|
+
noAdd: '未添加',
|
26
|
+
mobile: '手机号码',
|
27
|
+
email: '电子邮箱',
|
28
|
+
sendNews: '发消息',
|
29
|
+
job: '主岗',
|
30
|
+
otherJob: '兼岗',
|
31
|
+
};
|
32
|
+
exports.default = locale;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { NativeStackScreenProps } from '@react-navigation/native-stack/lib/typescript/src/types';
|
2
|
+
import React from 'react';
|
3
|
+
import { IMPageParamList } from '../../pages';
|
4
|
+
type AddressListProps = NativeStackScreenProps<IMPageParamList, 'AddressList'>;
|
5
|
+
declare const AddressList: ({ navigation }: AddressListProps) => React.JSX.Element;
|
6
|
+
export default AddressList;
|
@@ -0,0 +1,158 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
19
|
+
if (mod && mod.__esModule) return mod;
|
20
|
+
var result = {};
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22
|
+
__setModuleDefault(result, mod);
|
23
|
+
return result;
|
24
|
+
};
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
+
};
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
+
const rn_ui_1 = require("@smart-link/rn-ui");
|
30
|
+
const react_1 = __importStar(require("react"));
|
31
|
+
const react_native_1 = require("react-native");
|
32
|
+
const useTranslation_1 = __importDefault(require("../../hooks/useTranslation"));
|
33
|
+
const Icons_1 = require("./Icons");
|
34
|
+
const addressList_1 = require("../../api/addressList");
|
35
|
+
const useImSelector_1 = require("../../hooks/useImSelector");
|
36
|
+
const { width: screenWidth } = react_native_1.Dimensions.get('window');
|
37
|
+
const AddressList = ({ navigation }) => {
|
38
|
+
const [groupCategoryList, setGroupCategoryList] = (0, react_1.useState)([]);
|
39
|
+
const { t } = (0, useTranslation_1.default)();
|
40
|
+
const theme = (0, rn_ui_1.useTheme)();
|
41
|
+
const { user } = (0, useImSelector_1.useAuth)();
|
42
|
+
const compName = (user === null || user === void 0 ? void 0 : user.groupNamePath) || (user === null || user === void 0 ? void 0 : user.userName) || '';
|
43
|
+
(0, react_1.useEffect)(() => {
|
44
|
+
navigation.setOptions({ title: t('addressList') });
|
45
|
+
}, [t, navigation]);
|
46
|
+
(0, react_1.useEffect)(() => {
|
47
|
+
(0, addressList_1.listGroupCategory)({ appType: null }).then(({ data }) => {
|
48
|
+
setGroupCategoryList(data);
|
49
|
+
});
|
50
|
+
}, []);
|
51
|
+
const onPressSearch = () => {
|
52
|
+
console.log('_onPressSearch');
|
53
|
+
navigation.navigate('UserSearch', {});
|
54
|
+
};
|
55
|
+
const handleGroupCategory = (item) => {
|
56
|
+
navigation.navigate('Organization', Object.assign({}, item));
|
57
|
+
};
|
58
|
+
return (<rn_ui_1.NavigationPage noPadding noInsetBottom scroll>
|
59
|
+
<react_native_1.View style={{ height: 10 }}/>
|
60
|
+
<rn_ui_1.SearchBar style={{ marginHorizontal: 10 }} onSearch={onPressSearch}/>
|
61
|
+
<react_native_1.View style={{ height: 8 }}/>
|
62
|
+
{/*<ListRow*/}
|
63
|
+
{/* title={*/}
|
64
|
+
{/* <View style={[styles.orgLine]}>*/}
|
65
|
+
{/* <View style={[styles.iconView]}>*/}
|
66
|
+
{/* <Text style={[styles.icon]}>*/}
|
67
|
+
{/* <Icon name="badge" size={16} />*/}
|
68
|
+
{/* </Text>*/}
|
69
|
+
{/* </View>*/}
|
70
|
+
{/* <Text style={styles.title}>{t('groupChat')}</Text>*/}
|
71
|
+
{/* </View>*/}
|
72
|
+
{/* }*/}
|
73
|
+
{/* // onPress={() => this.navigator.push({view: <MyGroupsPage/>})}*/}
|
74
|
+
{/* topSeparator="full"*/}
|
75
|
+
{/*/>*/}
|
76
|
+
|
77
|
+
<react_native_1.View style={{ height: 15 }}/>
|
78
|
+
|
79
|
+
<rn_ui_1.ListRow title={<react_native_1.View style={styles.orgLine}>
|
80
|
+
{/*<Image style={{width: 30, height: 30, borderRadius: 3}}*/}
|
81
|
+
{/* source={Tenant.config.logoOrg || Tenant.config.logo}/>*/}
|
82
|
+
<react_native_1.Text style={styles.compName}>{compName}</react_native_1.Text>
|
83
|
+
</react_native_1.View>}/>
|
84
|
+
|
85
|
+
{groupCategoryList.map(item => {
|
86
|
+
return (<rn_ui_1.ListRow key={item.groupCategoryId} title={<react_native_1.View style={styles.orgLine}>
|
87
|
+
<react_native_1.Text style={styles.smallIcon}>
|
88
|
+
<Icons_1.Unfold size={18} color={theme.primaryColor}/>
|
89
|
+
</react_native_1.Text>
|
90
|
+
<react_native_1.Text style={styles.title}>{item.groupCategoryName}</react_native_1.Text>
|
91
|
+
</react_native_1.View>} onPress={() => handleGroupCategory(item)} topSeparator="full"/>);
|
92
|
+
})}
|
93
|
+
|
94
|
+
{/*<ListRow title=*/}
|
95
|
+
{/* {*/}
|
96
|
+
{/* <View style={styles.orgLine}>*/}
|
97
|
+
{/* <Text style={[styles.smallIcon]}>*/}
|
98
|
+
{/* <Icon name="ban-outlined" size={18} color='red' />*/}
|
99
|
+
{/* </Text>*/}
|
100
|
+
{/* <Text style={styles.title}>{t('myOrg')}</Text>*/}
|
101
|
+
{/* </View>*/}
|
102
|
+
{/* }*/}
|
103
|
+
{/* onPress={*/}
|
104
|
+
{/* () => {*/}
|
105
|
+
{/* navigation.navigate('Organization', {compName: compName, currentOrgId: user.userGroupId})*/}
|
106
|
+
{/* }*/}
|
107
|
+
{/* }*/}
|
108
|
+
{/* bottomSeparator='full'/>*/}
|
109
|
+
|
110
|
+
<react_native_1.View style={{ height: 15 }}/>
|
111
|
+
</rn_ui_1.NavigationPage>);
|
112
|
+
};
|
113
|
+
const styles = react_native_1.StyleSheet.create({
|
114
|
+
orgInfo: {
|
115
|
+
paddingTop: 20,
|
116
|
+
backgroundColor: '#f1f1f1',
|
117
|
+
textAlignVertical: 'center',
|
118
|
+
},
|
119
|
+
orgLine: {
|
120
|
+
width: (0, rn_ui_1.dp)(350),
|
121
|
+
flexDirection: 'row',
|
122
|
+
alignItems: 'center',
|
123
|
+
},
|
124
|
+
orgLinBorder: {
|
125
|
+
borderColor: '#f1f1f1',
|
126
|
+
borderTopWidth: 1,
|
127
|
+
},
|
128
|
+
compName: {
|
129
|
+
width: (0, rn_ui_1.dp)(305),
|
130
|
+
fontSize: 16,
|
131
|
+
fontWeight: '500',
|
132
|
+
textAlignVertical: 'center',
|
133
|
+
marginLeft: 10,
|
134
|
+
},
|
135
|
+
iconView: {
|
136
|
+
width: 30,
|
137
|
+
height: 30,
|
138
|
+
borderRadius: 3,
|
139
|
+
// backgroundColor: Theme.primaryColorThin
|
140
|
+
},
|
141
|
+
icon: {
|
142
|
+
lineHeight: 30,
|
143
|
+
textAlign: 'center',
|
144
|
+
},
|
145
|
+
smallIcon: {
|
146
|
+
width: 30,
|
147
|
+
height: 30,
|
148
|
+
lineHeight: 30,
|
149
|
+
textAlign: 'center',
|
150
|
+
textAlignVertical: 'center',
|
151
|
+
},
|
152
|
+
title: {
|
153
|
+
marginLeft: 10,
|
154
|
+
textAlignVertical: 'center',
|
155
|
+
fontSize: 16,
|
156
|
+
},
|
157
|
+
});
|
158
|
+
exports.default = AddressList;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
type ICardInfo = {
|
3
|
+
children: React.ReactNode;
|
4
|
+
style?: any;
|
5
|
+
};
|
6
|
+
type ILineProps = {
|
7
|
+
children: React.ReactNode;
|
8
|
+
style?: any;
|
9
|
+
onPress?: () => void;
|
10
|
+
onLongPress?: () => void;
|
11
|
+
hasRightIcon?: boolean;
|
12
|
+
};
|
13
|
+
export declare const CardInfo: (props: ICardInfo) => React.JSX.Element;
|
14
|
+
export declare const Line: (props: ILineProps) => React.JSX.Element;
|
15
|
+
export {};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.Line = exports.CardInfo = void 0;
|
7
|
+
const react_1 = __importDefault(require("react"));
|
8
|
+
const react_native_1 = require("react-native");
|
9
|
+
const CardInfo = (props) => {
|
10
|
+
const { children, style } = props;
|
11
|
+
return <react_native_1.View style={[styles.cardInfo, style]}>{children}</react_native_1.View>;
|
12
|
+
};
|
13
|
+
exports.CardInfo = CardInfo;
|
14
|
+
const Line = (props) => {
|
15
|
+
const { children, style, onPress, onLongPress } = props;
|
16
|
+
if (onPress || onLongPress) {
|
17
|
+
return (<react_native_1.TouchableHighlight style={[style, { borderTopWidth: 0 }]} onLongPress={onLongPress} onPress={onPress}>
|
18
|
+
<react_native_1.View style={[styles.line, style]}>{children}</react_native_1.View>
|
19
|
+
</react_native_1.TouchableHighlight>);
|
20
|
+
}
|
21
|
+
return <react_native_1.View style={[styles.line, style]}>{children}</react_native_1.View>;
|
22
|
+
};
|
23
|
+
exports.Line = Line;
|
24
|
+
const styles = react_native_1.StyleSheet.create({
|
25
|
+
cardInfo: {
|
26
|
+
marginTop: 10,
|
27
|
+
},
|
28
|
+
line: {
|
29
|
+
padding: 10,
|
30
|
+
backgroundColor: '#fff',
|
31
|
+
flexDirection: 'row',
|
32
|
+
alignItems: 'center',
|
33
|
+
position: 'relative',
|
34
|
+
},
|
35
|
+
rightIcon: {
|
36
|
+
width: 40,
|
37
|
+
textAlign: 'center',
|
38
|
+
textAlignVertical: 'center',
|
39
|
+
position: 'absolute',
|
40
|
+
right: 0,
|
41
|
+
},
|
42
|
+
});
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { NativeStackScreenProps } from '@react-navigation/native-stack';
|
3
|
+
import { IMPageParamList } from '../types';
|
4
|
+
type ChooseContactProps = NativeStackScreenProps<IMPageParamList, 'ChooseContact'>;
|
5
|
+
declare const ChooseContact: React.FC<ChooseContactProps>;
|
6
|
+
export default ChooseContact;
|