-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
index.ts
63 lines (57 loc) · 1.39 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
import { Amplify as AmplifyCore, I18n } from 'aws-amplify';
import dict from './AmplifyI18n';
export { default as AmplifyTheme } from './AmplifyTheme';
export { MapEntries as AmplifyMessageMapEntries } from './AmplifyMessageMap';
export {
AmplifyButton,
Container,
ErrorRow,
FormField,
Header,
LinkCell,
PhoneField,
SignedOutMessage,
Wrapper,
} from './AmplifyUI';
export {
AuthPiece,
Authenticator,
ConfirmSignIn,
ConfirmSignUp,
ForgotPassword,
Greetings,
Loading,
RequireNewPassword,
SignIn,
SignUp,
VerifyContact,
withAuthenticator,
withOAuth,
} from './Auth';
export { Connect } from './API';
export { S3Album, S3Image } from './Storage';
export { ChatBot } from './Interactions';
const configure = function (config) {
const msg = [
'',
'\x1b[33mWarning: Amplify.configure() is deprecated from aws-amplify-react-native.',
' Please import aws-amplify package to configure AWS Amplify\x1b[0m',
'',
' Example:',
'',
" \x1b[36mimport Amplify from 'aws-amplify';",
" import aws_exports from './aws-exports';",
'',
' Amplify.configure(aws_exports)\x1b[0m',
'',
].join('\n');
console.log(msg);
AmplifyCore.configure(config);
};
const Amplify = {
configure: configure,
};
export default Amplify;
I18n.putVocabularies(dict);