@brightlayer-ui/react-native-template-authentication-typescript 3.0.0-alpha.1 → 3.0.0-alpha.2
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/CHANGELOG.md +76 -0
- package/package.json +2 -2
- package/template/.buckconfig +6 -0
- package/template/.node-version +1 -0
- package/template/.prettierignore +2 -0
- package/template/.ruby-version +1 -0
- package/template/.watchmanconfig +1 -1
- package/template/Gemfile +2 -4
- package/template/Gemfile.lock +11 -17
- package/template/__mocks__/svgMock.js +8 -0
- package/template/_gitignore +8 -18
- package/template/android/app/build.gradle +4 -3
- package/template/android/app/src/main/java/com/{workflow → example}/MainActivity.kt +3 -9
- package/template/android/app/src/main/java/com/{workflow → example}/MainApplication.kt +4 -2
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +1 -2
- package/template/android/app/src/main/res/values/strings.xml +1 -1
- package/template/android/build.gradle +3 -3
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradlew +7 -7
- package/template/android/gradlew.bat +10 -10
- package/template/android/link-assets-manifest.json +23 -23
- package/template/android/settings.gradle +1 -1
- package/template/app.json +2 -2
- package/template/assets/images/Logo.svg +11 -0
- package/template/babel.config.js +1 -0
- package/template/index.js +0 -2
- package/template/ios/Podfile +24 -5
- package/template/ios/Podfile.lock +517 -570
- package/template/ios/{blankTemplate → example}/AppDelegate.mm +3 -3
- package/template/ios/{blankTemplate → example}/Info.plist +25 -24
- package/template/ios/{blankTemplate → example}/LaunchScreen.storyboard +1 -1
- package/template/ios/{blankTemplate.xcodeproj → example.xcodeproj}/project.pbxproj +123 -136
- package/template/ios/{blankTemplate.xcodeproj/xcshareddata/xcschemes/blankTemplate.xcscheme → example.xcodeproj/xcshareddata/xcschemes/example.xcscheme} +12 -12
- package/template/ios/{blankTemplate.xcworkspace → example.xcworkspace}/contents.xcworkspacedata +1 -1
- package/template/ios/{blankTemplateTests/blankTemplateTests.m → exampleTests/exampleTests.m} +2 -2
- package/template/ios/link-assets-manifest.json +23 -23
- package/template/metro.config.js +13 -8
- package/template/package.json +42 -35
- package/template/react-native.config.js +3 -0
- package/template/src/components/DebugComponent.tsx +0 -1
- package/template/src/components/{UserMenuExample.tsx → UserMenuComponent.tsx} +1 -1
- package/template/src/screens/Dashboard.tsx +2 -2
- package/template/src/screens/Homepage.tsx +2 -2
- package/template/src/screens/Locations.tsx +2 -2
- package/template/translations/dictionary/french.ts +3 -3
- package/template/translations/dictionary/portuguese.ts +1 -1
- package/template/translations/dictionary/spanish.ts +1 -1
- package/template/tsconfig.json +3 -3
- package/template/yarn.lock +2667 -1377
- package/template.config.js +1 -1
- package/template/assets/images/Logo.png +0 -0
- package/template/eslint.config.mjs +0 -10
- package/template/ios/blankTemplate/PrivacyInfo.xcprivacy +0 -37
- package/template/src/components/AuthCustomScreen.tsx +0 -50
- package/template/src/components/CustomScreen.tsx +0 -77
- package/template/src/components/ForgotPasswordScreenBaseExample.tsx +0 -42
- package/template/src/components/ResetPasswordScreenBaseExample.tsx +0 -41
- /package/template/ios/{blankTemplate → example}/AppDelegate.h +0 -0
- /package/template/ios/{blankTemplate → example}/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- /package/template/ios/{blankTemplate → example}/Images.xcassets/Contents.json +0 -0
- /package/template/ios/{blankTemplate → example}/main.m +0 -0
- /package/template/ios/{blankTemplate.xcworkspace → example.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- /package/template/ios/{blankTemplateTests → exampleTests}/Info.plist +0 -0
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
<BuildableReference
|
|
16
16
|
BuildableIdentifier = "primary"
|
|
17
17
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
18
|
-
BuildableName = "
|
|
19
|
-
BlueprintName = "
|
|
20
|
-
ReferencedContainer = "container:
|
|
18
|
+
BuildableName = "example.app"
|
|
19
|
+
BlueprintName = "example"
|
|
20
|
+
ReferencedContainer = "container:example.xcodeproj">
|
|
21
21
|
</BuildableReference>
|
|
22
22
|
</BuildActionEntry>
|
|
23
23
|
</BuildActionEntries>
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
<BuildableReference
|
|
34
34
|
BuildableIdentifier = "primary"
|
|
35
35
|
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
|
|
36
|
-
BuildableName = "
|
|
37
|
-
BlueprintName = "
|
|
38
|
-
ReferencedContainer = "container:
|
|
36
|
+
BuildableName = "exampleTests.xctest"
|
|
37
|
+
BlueprintName = "exampleTests"
|
|
38
|
+
ReferencedContainer = "container:example.xcodeproj">
|
|
39
39
|
</BuildableReference>
|
|
40
40
|
</TestableReference>
|
|
41
41
|
</Testables>
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
<BuildableReference
|
|
56
56
|
BuildableIdentifier = "primary"
|
|
57
57
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
58
|
-
BuildableName = "
|
|
59
|
-
BlueprintName = "
|
|
60
|
-
ReferencedContainer = "container:
|
|
58
|
+
BuildableName = "example.app"
|
|
59
|
+
BlueprintName = "example"
|
|
60
|
+
ReferencedContainer = "container:example.xcodeproj">
|
|
61
61
|
</BuildableReference>
|
|
62
62
|
</BuildableProductRunnable>
|
|
63
63
|
</LaunchAction>
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
<BuildableReference
|
|
73
73
|
BuildableIdentifier = "primary"
|
|
74
74
|
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
|
|
75
|
-
BuildableName = "
|
|
76
|
-
BlueprintName = "
|
|
77
|
-
ReferencedContainer = "container:
|
|
75
|
+
BuildableName = "example.app"
|
|
76
|
+
BlueprintName = "example"
|
|
77
|
+
ReferencedContainer = "container:example.xcodeproj">
|
|
78
78
|
</BuildableReference>
|
|
79
79
|
</BuildableProductRunnable>
|
|
80
80
|
</ProfileAction>
|
package/template/ios/{blankTemplateTests/blankTemplateTests.m → exampleTests/exampleTests.m}
RENAMED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
#define TIMEOUT_SECONDS 600
|
|
8
8
|
#define TEXT_TO_LOOK_FOR @"Welcome to React"
|
|
9
9
|
|
|
10
|
-
@interface
|
|
10
|
+
@interface exampleTests : XCTestCase
|
|
11
11
|
|
|
12
12
|
@end
|
|
13
13
|
|
|
14
|
-
@implementation
|
|
14
|
+
@implementation exampleTests
|
|
15
15
|
|
|
16
16
|
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
|
|
17
17
|
{
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
"migIndex": 1,
|
|
3
|
+
"data": [
|
|
4
|
+
{
|
|
5
|
+
"path": "assets/fonts/OpenSans-Bold.ttf",
|
|
6
|
+
"sha1": "1e3704ee48b5ff7e582488ead87b05249f14dc1c"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"path": "assets/fonts/OpenSans-ExtraBold.ttf",
|
|
10
|
+
"sha1": "5acb1de2513aca9ce4fcf5d1e1e49aad86f1888c"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"path": "assets/fonts/OpenSans-Light.ttf",
|
|
14
|
+
"sha1": "bf0d133b628259eca01049d30fa6316094d00bcf"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"path": "assets/fonts/OpenSans-Regular.ttf",
|
|
18
|
+
"sha1": "babe8dce93a3e48b6c3c79720a0c048e88dd1fe7"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"path": "assets/fonts/OpenSans-SemiBold.ttf",
|
|
22
|
+
"sha1": "e256f8391718ef61f253dfb4e95bbeb3c5857afc"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
25
|
}
|
package/template/metro.config.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
* Metro configuration
|
|
5
|
-
* https://reactnative.dev/docs/metro
|
|
6
|
-
*
|
|
7
|
-
* @type {import('metro-config').MetroConfig}
|
|
8
|
-
*/
|
|
9
|
-
const config = {};
|
|
3
|
+
const defaultConfig = getDefaultConfig(__dirname);
|
|
10
4
|
|
|
11
|
-
|
|
5
|
+
const config = {
|
|
6
|
+
transformer: {
|
|
7
|
+
getTransformOptions: async () => ({
|
|
8
|
+
transform: {
|
|
9
|
+
experimentalImportSupport: false,
|
|
10
|
+
inlineRequires: true,
|
|
11
|
+
},
|
|
12
|
+
}),
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = mergeConfig(defaultConfig, config);
|
package/template/package.json
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "example",
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"android": "react-native run-android",
|
|
7
7
|
"ios": "react-native run-ios",
|
|
8
|
-
"
|
|
9
|
-
"lint:fix": "eslint \"src/**/**.ts\" --fix",
|
|
10
|
-
"prettier": "prettier \"**/**.{tsx,ts,js,json}\" --write",
|
|
8
|
+
"ipad": "react-native run-ios --simulator='iPad Pro (12.9-inch) (6th generation)'",
|
|
11
9
|
"start": "react-native start",
|
|
12
|
-
"test": "jest"
|
|
10
|
+
"test": "jest",
|
|
11
|
+
"lint": "eslint \"**/**.{ts,tsx}\"",
|
|
12
|
+
"lint:fix": "eslint \"**/**.{ts,tsx}\" --fix",
|
|
13
|
+
"prettier": "prettier \"**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --write",
|
|
14
|
+
"prettier:check": "prettier \"**/**.{ts,tsx,js,jsx,json,css,scss,html}\" --check",
|
|
15
|
+
"rnlink": "npm_config_yes=true npx react-native link"
|
|
13
16
|
},
|
|
14
17
|
"dependencies": {
|
|
15
|
-
"@brightlayer-ui/
|
|
18
|
+
"@brightlayer-ui/colors": "^4.0.0",
|
|
16
19
|
"@brightlayer-ui/react-native-components": "^8.0.2",
|
|
17
20
|
"@brightlayer-ui/react-native-themes": "^7.0.0",
|
|
18
21
|
"@brightlayer-ui/react-native-vector-icons": "^2.2.0",
|
|
19
|
-
"@react-native-async-storage/async-storage": "^1.
|
|
20
|
-
"@react-navigation/drawer": "^6.6.
|
|
21
|
-
"@react-navigation/native": "^6.1.
|
|
22
|
+
"@react-native-async-storage/async-storage": "^1.22.3",
|
|
23
|
+
"@react-navigation/drawer": "^6.6.6",
|
|
24
|
+
"@react-navigation/native": "^6.1.9",
|
|
22
25
|
"@react-navigation/native-stack": "^6.9.26",
|
|
23
|
-
"
|
|
26
|
+
"@react-navigation/stack": "^6.3.20",
|
|
27
|
+
"i18next": "^23.7.16",
|
|
24
28
|
"intl-pluralrules": "^2.0.1",
|
|
25
29
|
"react": "18.2.0",
|
|
26
|
-
"react-i18next": "^14.
|
|
27
|
-
"react-native": "0.
|
|
28
|
-
"react-native-gesture-handler": "^2.
|
|
29
|
-
"react-native-pager-view": "^6.3
|
|
30
|
-
"react-native-paper": "^5.
|
|
31
|
-
"react-native-reanimated": "^3.
|
|
30
|
+
"react-i18next": "^14.0.0",
|
|
31
|
+
"react-native": "0.73.2",
|
|
32
|
+
"react-native-gesture-handler": "^2.14.1",
|
|
33
|
+
"react-native-pager-view": "^6.2.3",
|
|
34
|
+
"react-native-paper": "^5.12.1",
|
|
35
|
+
"react-native-reanimated": "^3.6.1",
|
|
32
36
|
"react-native-restart": "^0.0.27",
|
|
33
|
-
"react-native-safe-area-context": "^4.
|
|
34
|
-
"react-native-screens": "^3.
|
|
37
|
+
"react-native-safe-area-context": "^4.8.2",
|
|
38
|
+
"react-native-screens": "^3.29.0",
|
|
35
39
|
"react-native-select-dropdown": "^3.4.0",
|
|
40
|
+
"@brightlayer-ui/icons-svg": "^1.14.0",
|
|
41
|
+
"@brightlayer-ui/react-native-auth-workflow": "^6.0.0",
|
|
42
|
+
"@react-native-community/masked-view": "^0.1.10",
|
|
43
|
+
"date-fns": "^2.19.0",
|
|
44
|
+
"react-native-keyboard-aware-scroll-view": "^0.9.3",
|
|
45
|
+
"react-native-modal": "^12.0.2",
|
|
46
|
+
"react-native-svg": "^12.1.0",
|
|
47
|
+
"react-native-svg-transformer": "^1.3.0",
|
|
36
48
|
"react-native-vector-icons": "^9.2.0",
|
|
37
|
-
"react-native-webview": "^13.
|
|
49
|
+
"react-native-webview": "^13.8.1"
|
|
38
50
|
},
|
|
39
51
|
"devDependencies": {
|
|
40
52
|
"@babel/core": "^7.20.0",
|
|
@@ -42,30 +54,25 @@
|
|
|
42
54
|
"@babel/runtime": "^7.20.0",
|
|
43
55
|
"@brightlayer-ui/eslint-config": "^3.0.1",
|
|
44
56
|
"@brightlayer-ui/prettier-config": "^1.0.3",
|
|
45
|
-
"@
|
|
46
|
-
"@react-native/
|
|
47
|
-
"@react-native/
|
|
48
|
-
"@react-native/
|
|
49
|
-
"@react-native/typescript-config": "0.74.83",
|
|
57
|
+
"@react-native/babel-preset": "0.74.0",
|
|
58
|
+
"@react-native/eslint-config": "0.74.0",
|
|
59
|
+
"@react-native/metro-config": "0.74.0",
|
|
60
|
+
"@react-native/typescript-config": "0.74.0",
|
|
50
61
|
"@types/react": "^18.2.6",
|
|
62
|
+
"@types/react-native-vector-icons": "^6.4.18",
|
|
51
63
|
"@types/react-test-renderer": "^18.0.0",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
53
|
-
"@typescript-eslint/parser": "^
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
65
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
54
66
|
"babel-jest": "^29.6.3",
|
|
55
|
-
"eslint": "8.56.0",
|
|
67
|
+
"eslint": "^8.56.0",
|
|
56
68
|
"eslint-config-prettier": "^9.1.0",
|
|
57
|
-
"eslint-plugin-react": "^7.
|
|
58
|
-
"eslint-plugin-react-hooks": "^4.6.
|
|
59
|
-
"globals": "^15.1.0",
|
|
69
|
+
"eslint-plugin-react": "^7.33.2",
|
|
70
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
60
71
|
"jest": "^29.6.3",
|
|
61
72
|
"jest-transform-stub": "^2.0.0",
|
|
62
73
|
"prettier": "2.8.8",
|
|
63
74
|
"react-test-renderer": "18.2.0",
|
|
64
|
-
"typescript": "5.0.4"
|
|
65
|
-
"typescript-eslint": "^7.8.0"
|
|
66
|
-
},
|
|
67
|
-
"engines": {
|
|
68
|
-
"node": ">=18"
|
|
75
|
+
"typescript": "5.0.4"
|
|
69
76
|
},
|
|
70
77
|
"prettier": "@brightlayer-ui/prettier-config"
|
|
71
78
|
}
|
|
@@ -38,7 +38,7 @@ type UserMenuExampleProps = {
|
|
|
38
38
|
onToggleTheme: () => void;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export const
|
|
41
|
+
export const UserMenuComponent: React.FC<UserMenuExampleProps> = (props) => {
|
|
42
42
|
const { onToggleRTL, onToggleTheme } = props;
|
|
43
43
|
const theme = useExtendedTheme();
|
|
44
44
|
const { i18n, t } = useTranslation();
|
|
@@ -14,7 +14,7 @@ import RNRestart from 'react-native-restart';
|
|
|
14
14
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
15
15
|
import { RootStackParamList } from '../navigation';
|
|
16
16
|
import { ExtendedTheme, useExtendedTheme } from '@brightlayer-ui/react-native-themes';
|
|
17
|
-
import {
|
|
17
|
+
import { UserMenuComponent } from '../components/UserMenuComponent';
|
|
18
18
|
import { useThemeContext } from '../contexts/ThemeContext';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
20
|
import { IconFamily } from '@brightlayer-ui/react-native-components/core/__types__';
|
|
@@ -107,7 +107,7 @@ const Dashboard: React.FC<AppProps> = ({ navigation }): JSX.Element => {
|
|
|
107
107
|
icon: { name: 'more' },
|
|
108
108
|
onPress: (): void => {},
|
|
109
109
|
component: (
|
|
110
|
-
<
|
|
110
|
+
<UserMenuComponent
|
|
111
111
|
onToggleRTL={toggleRTL}
|
|
112
112
|
onToggleTheme={(): void => setTheme(themeType === 'light' ? 'dark' : 'light')}
|
|
113
113
|
/>
|
|
@@ -14,7 +14,7 @@ import RNRestart from 'react-native-restart';
|
|
|
14
14
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
15
15
|
import { RootStackParamList } from '../navigation';
|
|
16
16
|
import { ExtendedTheme, useExtendedTheme } from '@brightlayer-ui/react-native-themes';
|
|
17
|
-
import {
|
|
17
|
+
import { UserMenuComponent } from '../components/UserMenuComponent';
|
|
18
18
|
import { useThemeContext } from '../contexts/ThemeContext';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
20
|
import { IconFamily } from '@brightlayer-ui/react-native-components/core/__types__';
|
|
@@ -107,7 +107,7 @@ export const Homepage: React.FC<AppProps> = ({ navigation }): JSX.Element => {
|
|
|
107
107
|
icon: { name: 'more' },
|
|
108
108
|
onPress: (): void => {},
|
|
109
109
|
component: (
|
|
110
|
-
<
|
|
110
|
+
<UserMenuComponent
|
|
111
111
|
onToggleRTL={toggleRTL}
|
|
112
112
|
onToggleTheme={(): void => setTheme(themeType === 'light' ? 'dark' : 'light')}
|
|
113
113
|
/>
|
|
@@ -14,7 +14,7 @@ import RNRestart from 'react-native-restart';
|
|
|
14
14
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
15
15
|
import { RootStackParamList } from '../navigation';
|
|
16
16
|
import { ExtendedTheme, useExtendedTheme } from '@brightlayer-ui/react-native-themes';
|
|
17
|
-
import {
|
|
17
|
+
import { UserMenuComponent } from '../components/UserMenuComponent';
|
|
18
18
|
import { useThemeContext } from '../contexts/ThemeContext';
|
|
19
19
|
import { useTranslation } from 'react-i18next';
|
|
20
20
|
import { IconFamily } from '@brightlayer-ui/react-native-components/core/__types__';
|
|
@@ -107,7 +107,7 @@ const Locations: React.FC<AppProps> = ({ navigation }): JSX.Element => {
|
|
|
107
107
|
icon: { name: 'more' },
|
|
108
108
|
onPress: (): void => {},
|
|
109
109
|
component: (
|
|
110
|
-
<
|
|
110
|
+
<UserMenuComponent
|
|
111
111
|
onToggleRTL={toggleRTL}
|
|
112
112
|
onToggleTheme={(): void => setTheme(themeType === 'light' ? 'dark' : 'light')}
|
|
113
113
|
/>
|
|
@@ -15,10 +15,10 @@ const resources: AppTranslationsFile = {
|
|
|
15
15
|
},
|
|
16
16
|
USER_MENU: {
|
|
17
17
|
LOG_OUT: 'Se déconnecter',
|
|
18
|
-
CHANGE_PASSWORD: '
|
|
18
|
+
CHANGE_PASSWORD: 'Changer le mot de passe',
|
|
19
19
|
MY_ACCOUNT: 'Mon compte',
|
|
20
|
-
TOGGLE_RTL: '
|
|
21
|
-
TOGGLE_THEME: '
|
|
20
|
+
TOGGLE_RTL: 'Basculer RTL',
|
|
21
|
+
TOGGLE_THEME: 'Basculer le thème',
|
|
22
22
|
LANGUAGE: 'Langue',
|
|
23
23
|
},
|
|
24
24
|
ORGANAIZATION_DETAILS: {
|
|
@@ -15,7 +15,7 @@ const resources: AppTranslationsFile = {
|
|
|
15
15
|
},
|
|
16
16
|
USER_MENU: {
|
|
17
17
|
LOG_OUT: 'Cerrar sesión',
|
|
18
|
-
CHANGE_PASSWORD: '
|
|
18
|
+
CHANGE_PASSWORD: 'Cambiar la contraseña',
|
|
19
19
|
MY_ACCOUNT: 'Mi cuenta',
|
|
20
20
|
TOGGLE_RTL: 'Alternar RTL',
|
|
21
21
|
TOGGLE_THEME: 'Alternar tema',
|
package/template/tsconfig.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* Basic Options */
|
|
4
4
|
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
|
|
5
5
|
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
|
6
|
-
"lib": ["
|
|
6
|
+
"lib": ["es2017"] /* Specify library files to be included in the compilation. */,
|
|
7
7
|
"allowJs": true /* Allow javascript files to be compiled. */,
|
|
8
8
|
// "checkJs": true, /* Report errors in .js files. */
|
|
9
9
|
"jsx": "react-native" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
|
|
37
37
|
/* Module Resolution Options */
|
|
38
38
|
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
|
|
39
|
-
|
|
39
|
+
"baseUrl": "./" /* Base directory to resolve non-absolute module names. */,
|
|
40
40
|
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
|
|
41
41
|
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
|
|
42
42
|
// "typeRoots": [], /* List of folders to include type definitions from. */
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */,
|
|
45
45
|
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
46
46
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
47
|
-
"skipLibCheck":
|
|
47
|
+
"skipLibCheck": false /* Skip type checking of declaration files. */
|
|
48
48
|
|
|
49
49
|
/* Source Map Options */
|
|
50
50
|
// "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|