@brightlayer-ui/react-native-template-authentication-typescript 3.0.1-alpha.0 → 4.0.0-alpha.0
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 +22 -9
- package/README.md +10 -8
- package/package.json +2 -2
- package/template/.prettierrc.js +0 -2
- package/template/App.tsx +5 -5
- package/template/Gemfile +11 -2
- package/template/android/app/build.gradle +15 -13
- package/template/android/app/src/main/AndroidManifest.xml +2 -1
- package/template/android/app/src/main/java/com/example/MainApplication.kt +4 -11
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +2 -1
- package/template/android/build.gradle +6 -6
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/template/android/gradle.properties +1 -3
- package/template/android/gradlew +13 -11
- package/template/android/gradlew.bat +19 -12
- package/template/android/settings.gradle +3 -1
- package/template/ios/Podfile +3 -27
- package/template/ios/Podfile.lock +2224 -662
- package/template/ios/example/AppDelegate.swift +48 -0
- package/template/ios/example/Info.plist +16 -26
- package/template/ios/example/PrivacyInfo.xcprivacy +37 -0
- package/template/ios/example.xcodeproj/project.pbxproj +26 -268
- package/template/ios/exampleTests/Info.plist +31 -18
- package/template/package.json +52 -46
- package/template/src/components/UserMenuComponent.tsx +1 -2
- package/template/translations/i18n.ts +5 -5
- package/template/yarn.lock +8512 -0
- package/template/_gitignore +0 -64
- package/template/ios/example/AppDelegate.h +0 -6
- package/template/ios/example/AppDelegate.mm +0 -31
- package/template/ios/example/main.m +0 -10
- package/template/ios/exampleTests/exampleTests.m +0 -66
|
@@ -2,23 +2,36 @@
|
|
|
2
2
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
3
|
<plist version="1.0">
|
|
4
4
|
<dict>
|
|
5
|
-
<key>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
5
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
9
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
10
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
11
|
+
<array>
|
|
12
|
+
<string>C617.1</string>
|
|
13
|
+
</array>
|
|
14
|
+
</dict>
|
|
15
|
+
<dict>
|
|
16
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
17
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
18
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
19
|
+
<array>
|
|
20
|
+
<string>CA92.1</string>
|
|
21
|
+
</array>
|
|
22
|
+
</dict>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
25
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
26
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
27
|
+
<array>
|
|
28
|
+
<string>35F9.1</string>
|
|
29
|
+
</array>
|
|
30
|
+
</dict>
|
|
31
|
+
</array>
|
|
32
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
33
|
+
<array/>
|
|
34
|
+
<key>NSPrivacyTracking</key>
|
|
35
|
+
<false/>
|
|
23
36
|
</dict>
|
|
24
37
|
</plist>
|
package/template/package.json
CHANGED
|
@@ -16,63 +16,69 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@brightlayer-ui/colors": "^4.0.0",
|
|
19
|
-
"@brightlayer-ui/
|
|
20
|
-
"@brightlayer-ui/react-native-
|
|
21
|
-
"@brightlayer-ui/react-native-
|
|
22
|
-
"@react-native-
|
|
19
|
+
"@brightlayer-ui/icons-svg": "^1.15.0",
|
|
20
|
+
"@brightlayer-ui/react-native-auth-workflow": "^7.0.2",
|
|
21
|
+
"@brightlayer-ui/react-native-components": "^8.0.4",
|
|
22
|
+
"@brightlayer-ui/react-native-themes": "^7.0.1",
|
|
23
|
+
"@brightlayer-ui/react-native-vector-icons": "^2.4.0",
|
|
24
|
+
"@okta/okta-react-native": "^2.17.0",
|
|
25
|
+
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
26
|
+
"@react-native-community/masked-view": "^0.1.11",
|
|
27
|
+
"@react-native/new-app-screen": "0.80.0",
|
|
23
28
|
"@react-navigation/drawer": "^6.6.6",
|
|
24
29
|
"@react-navigation/native": "^6.1.9",
|
|
25
30
|
"@react-navigation/native-stack": "^6.9.26",
|
|
26
31
|
"@react-navigation/stack": "^6.3.20",
|
|
27
|
-
"
|
|
32
|
+
"date-fns": "^4.1.0",
|
|
33
|
+
"i18next": "^25.2.1",
|
|
28
34
|
"intl-pluralrules": "^2.0.1",
|
|
29
|
-
"react": "
|
|
30
|
-
"react-i18next": "^
|
|
31
|
-
"react-native": "0.
|
|
32
|
-
"react-native-gesture-handler": "^2.
|
|
33
|
-
"react-native-
|
|
34
|
-
"react-native-
|
|
35
|
-
"react-native-
|
|
35
|
+
"react": "^19.1.0",
|
|
36
|
+
"react-i18next": "^15.5.3",
|
|
37
|
+
"react-native": "^0.80.0",
|
|
38
|
+
"react-native-gesture-handler": "^2.26.0",
|
|
39
|
+
"react-native-keyboard-aware-scroll-view": "^0.9.5",
|
|
40
|
+
"react-native-modal": "^13.0.2",
|
|
41
|
+
"react-native-pager-view": "^6.8.1",
|
|
42
|
+
"react-native-paper": "^5.14.5",
|
|
43
|
+
"react-native-reanimated": "^3.18.0",
|
|
36
44
|
"react-native-restart": "^0.0.27",
|
|
37
|
-
"react-native-safe-area-context": "^
|
|
38
|
-
"react-native-screens": "^
|
|
39
|
-
"react-native-select-dropdown": "^
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
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",
|
|
48
|
-
"react-native-vector-icons": "^9.2.0",
|
|
49
|
-
"react-native-webview": "^13.8.1"
|
|
45
|
+
"react-native-safe-area-context": "^5.5.0",
|
|
46
|
+
"react-native-screens": "^4.11.1",
|
|
47
|
+
"react-native-select-dropdown": "^4.0.1",
|
|
48
|
+
"react-native-svg": "^15.12.0",
|
|
49
|
+
"react-native-svg-transformer": "^1.5.1",
|
|
50
|
+
"react-native-vector-icons": "^10.2.0",
|
|
51
|
+
"react-native-webview": "^13.15.0"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
|
-
"@babel/core": "^7.
|
|
53
|
-
"@babel/preset-env": "^7.
|
|
54
|
-
"@babel/runtime": "^7.
|
|
55
|
-
"@brightlayer-ui/eslint-config": "^
|
|
54
|
+
"@babel/core": "^7.27.7",
|
|
55
|
+
"@babel/preset-env": "^7.27.2",
|
|
56
|
+
"@babel/runtime": "^7.27.6",
|
|
57
|
+
"@brightlayer-ui/eslint-config": "^4.0.0",
|
|
56
58
|
"@brightlayer-ui/prettier-config": "^1.0.3",
|
|
57
|
-
"@react-native/
|
|
58
|
-
"@react-native/
|
|
59
|
-
"@react-native/
|
|
60
|
-
"@react-native/
|
|
61
|
-
"@
|
|
59
|
+
"@react-native-community/cli": "19.0.0",
|
|
60
|
+
"@react-native-community/cli-platform-android": "19.0.0",
|
|
61
|
+
"@react-native-community/cli-platform-ios": "19.0.0",
|
|
62
|
+
"@react-native/babel-preset": "0.80.0",
|
|
63
|
+
"@react-native/eslint-config": "0.80.0",
|
|
64
|
+
"@react-native/metro-config": "0.80.0",
|
|
65
|
+
"@react-native/typescript-config": "0.80.0",
|
|
66
|
+
"@types/jest": "^30.0.0",
|
|
67
|
+
"@types/react": "^19.1.8",
|
|
62
68
|
"@types/react-native-vector-icons": "^6.4.18",
|
|
63
|
-
"@types/react-test-renderer": "^
|
|
64
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
65
|
-
"@typescript-eslint/parser": "^
|
|
66
|
-
"babel-jest": "^
|
|
67
|
-
"eslint": "^
|
|
68
|
-
"eslint-config-prettier": "^
|
|
69
|
-
"eslint-plugin-react": "^7.
|
|
70
|
-
"eslint-plugin-react-hooks": "^
|
|
71
|
-
"jest": "^
|
|
69
|
+
"@types/react-test-renderer": "^19.1.0",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
|
71
|
+
"@typescript-eslint/parser": "^8.35.0",
|
|
72
|
+
"babel-jest": "^30.0.2",
|
|
73
|
+
"eslint": "^9.29.0",
|
|
74
|
+
"eslint-config-prettier": "^10.1.5",
|
|
75
|
+
"eslint-plugin-react": "^7.37.5",
|
|
76
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
77
|
+
"jest": "^30.0.3",
|
|
72
78
|
"jest-transform-stub": "^2.0.0",
|
|
73
|
-
"prettier": "
|
|
74
|
-
"react-test-renderer": "
|
|
75
|
-
"typescript": "5.
|
|
79
|
+
"prettier": "3.6.2",
|
|
80
|
+
"react-test-renderer": "19.1.0",
|
|
81
|
+
"typescript": "5.8.3"
|
|
76
82
|
},
|
|
77
83
|
"prettier": "@brightlayer-ui/prettier-config"
|
|
78
84
|
}
|
|
@@ -81,8 +81,7 @@ export const UserMenuComponent: React.FC<UserMenuExampleProps> = (props) => {
|
|
|
81
81
|
rightComponent: (
|
|
82
82
|
<SelectDropdown
|
|
83
83
|
defaultValue={languageOptions.find((option) => option.value === i18n.language)}
|
|
84
|
-
|
|
85
|
-
onSelect={(item) => handleLanguageChange(item.value)}
|
|
84
|
+
onSelect={(item: any) => void handleLanguageChange(item.value)}
|
|
86
85
|
data={languageOptions}
|
|
87
86
|
buttonStyle={{ backgroundColor: theme.colors.background }}
|
|
88
87
|
buttonTextStyle={{ color: theme.colors.primary }}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import i18next from 'i18next';
|
|
2
2
|
import { AppDictionaries } from './dictionary';
|
|
3
3
|
import { initReactI18next } from 'react-i18next';
|
|
4
|
-
import { NativeModules, Platform } from 'react-native';
|
|
4
|
+
// import { NativeModules, Platform } from 'react-native';
|
|
5
5
|
|
|
6
|
-
const locale =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const locale = 'en';
|
|
7
|
+
// Platform.OS === 'ios'
|
|
8
|
+
// ? NativeModules.SettingsManager.settings.AppleLocale
|
|
9
|
+
// : NativeModules.I18nManager.localeIdentifier;
|
|
10
10
|
void i18next
|
|
11
11
|
.use(initReactI18next) // passes i18n down to react-i18next
|
|
12
12
|
.init(
|