@brightlayer-ui/react-native-template-authentication-typescript 3.0.0-alpha.1 → 3.0.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/package.json +2 -2
  3. package/template/.buckconfig +6 -0
  4. package/template/.node-version +1 -0
  5. package/template/.prettierignore +2 -0
  6. package/template/.ruby-version +1 -0
  7. package/template/.watchmanconfig +1 -1
  8. package/template/Gemfile +2 -4
  9. package/template/Gemfile.lock +11 -17
  10. package/template/__mocks__/svgMock.js +8 -0
  11. package/template/_gitignore +8 -18
  12. package/template/android/app/build.gradle +4 -3
  13. package/template/android/app/src/main/java/com/{workflow → example}/MainActivity.kt +3 -9
  14. package/template/android/app/src/main/java/com/{workflow → example}/MainApplication.kt +4 -2
  15. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +1 -2
  16. package/template/android/app/src/main/res/values/strings.xml +1 -1
  17. package/template/android/build.gradle +3 -3
  18. package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  19. package/template/android/gradlew +7 -7
  20. package/template/android/gradlew.bat +10 -10
  21. package/template/android/link-assets-manifest.json +23 -23
  22. package/template/android/settings.gradle +1 -1
  23. package/template/app.json +2 -2
  24. package/template/assets/images/Logo.svg +11 -0
  25. package/template/babel.config.js +1 -0
  26. package/template/index.js +0 -2
  27. package/template/ios/Podfile +24 -5
  28. package/template/ios/Podfile.lock +517 -570
  29. package/template/ios/{blankTemplate → example}/AppDelegate.mm +3 -3
  30. package/template/ios/{blankTemplate → example}/Info.plist +25 -24
  31. package/template/ios/{blankTemplate → example}/LaunchScreen.storyboard +1 -1
  32. package/template/ios/{blankTemplate.xcodeproj → example.xcodeproj}/project.pbxproj +123 -136
  33. package/template/ios/{blankTemplate.xcodeproj/xcshareddata/xcschemes/blankTemplate.xcscheme → example.xcodeproj/xcshareddata/xcschemes/example.xcscheme} +12 -12
  34. package/template/ios/{blankTemplate.xcworkspace → example.xcworkspace}/contents.xcworkspacedata +1 -1
  35. package/template/ios/{blankTemplateTests/blankTemplateTests.m → exampleTests/exampleTests.m} +2 -2
  36. package/template/ios/link-assets-manifest.json +23 -23
  37. package/template/metro.config.js +13 -8
  38. package/template/package.json +42 -35
  39. package/template/react-native.config.js +3 -0
  40. package/template/src/components/DebugComponent.tsx +0 -1
  41. package/template/src/components/{UserMenuExample.tsx → UserMenuComponent.tsx} +1 -1
  42. package/template/src/navigation/navigation-drawer.tsx +1 -1
  43. package/template/src/screens/Dashboard.tsx +2 -2
  44. package/template/src/screens/Homepage.tsx +2 -2
  45. package/template/src/screens/Locations.tsx +2 -2
  46. package/template/translations/dictionary/french.ts +3 -3
  47. package/template/translations/dictionary/portuguese.ts +1 -1
  48. package/template/translations/dictionary/spanish.ts +1 -1
  49. package/template/tsconfig.json +3 -3
  50. package/template/yarn.lock +2667 -1377
  51. package/template.config.js +1 -1
  52. package/template/assets/images/Logo.png +0 -0
  53. package/template/eslint.config.mjs +0 -10
  54. package/template/ios/blankTemplate/PrivacyInfo.xcprivacy +0 -37
  55. package/template/src/components/AuthCustomScreen.tsx +0 -50
  56. package/template/src/components/CustomScreen.tsx +0 -77
  57. package/template/src/components/ForgotPasswordScreenBaseExample.tsx +0 -42
  58. package/template/src/components/ResetPasswordScreenBaseExample.tsx +0 -41
  59. /package/template/ios/{blankTemplate → example}/AppDelegate.h +0 -0
  60. /package/template/ios/{blankTemplate → example}/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
  61. /package/template/ios/{blankTemplate → example}/Images.xcassets/Contents.json +0 -0
  62. /package/template/ios/{blankTemplate → example}/main.m +0 -0
  63. /package/template/ios/{blankTemplate.xcworkspace → example.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist +0 -0
  64. /package/template/ios/{blankTemplateTests → exampleTests}/Info.plist +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,76 @@
1
+ # Changelog
2
+
3
+ ## v3.0.0 (June 5, 2024)
4
+
5
+ ### Changed
6
+
7
+ - Update to build with React Native 0.73.
8
+ - Updated the templates to use React Native CLI
9
+
10
+ ## v2.1.0 (November 1, 2022)
11
+
12
+ ### Changed
13
+
14
+ - Update to build with React Native 0.70.
15
+
16
+ ## v2.0.0 (December 16, 2021)
17
+
18
+ ### Changed
19
+
20
+ - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
21
+
22
+ ## Package Migration Notice
23
+
24
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
25
+
26
+ ---
27
+
28
+ ## v2.0.0 (November 3, 2021)
29
+
30
+ ### Changed
31
+
32
+ - Updated to use latest APIs from `@pxblue/react-native-components`.
33
+
34
+ ## v1.3.2 (October 1, 2021)
35
+
36
+ ### Fixed
37
+
38
+ - Added dependency for `@pxblue/react-native-vector-icons`
39
+
40
+ ## v1.3.1 (October 1, 2021)
41
+
42
+ ### Fixed
43
+
44
+ - Issue with template using the wrong dependency for `@pxblue/react-native-auth-workflow`
45
+
46
+ ## v1.3.0 (September 30, 2021)
47
+
48
+ ### Changed
49
+ - Upgrade PX Blue packages
50
+ - Changed default drawer width to 300.
51
+
52
+ ## v1.2.0 (July 26, 2021)
53
+
54
+ ### Changed
55
+ - Updated version of react-native-modal dependency to 12.0.2
56
+
57
+ ## v1.1.1 (June 30, 2021)
58
+
59
+ ### Changed
60
+ - Dropped version of react-native-webview peerDependency to match requirements of @pxblue/react-native-auth-workflow.
61
+
62
+ ## v1.1.0 (March 31, 2021)
63
+
64
+ ### Changed
65
+ - Updated dependencies to use latest packages.
66
+ - Reorganized folder structure
67
+
68
+ ### Fixed
69
+ - Jest configuration allows default tests to pass.
70
+
71
+
72
+ ## v1.0.0 (March 1, 2021)
73
+
74
+ ### Added
75
+
76
+ - Initial authentication template for TypeScript projects
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlayer-ui/react-native-template-authentication-typescript",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0",
4
4
  "author": "brightlayer-ui <brightlayer-ui@eaton.com>",
5
5
  "keywords": [
6
6
  "react native",
@@ -8,7 +8,7 @@
8
8
  "brightlayer-ui",
9
9
  "cli"
10
10
  ],
11
- "description": "A template with pre-configured login workflow and routing for React Native projects created with the Brightlayer UI CLI.",
11
+ "description": "A template with pre-configured login workflow and routing for React Native projects created with the React Native CLI.",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/etn-ccis/blui-react-native-cli-templates.git"
@@ -0,0 +1,6 @@
1
+
2
+ [android]
3
+ target = Google Inc.:Google APIs:23
4
+
5
+ [maven_repositories]
6
+ central = https://repo1.maven.org/maven2
@@ -0,0 +1 @@
1
+ 16
@@ -0,0 +1,2 @@
1
+ ios/
2
+ android
@@ -0,0 +1 @@
1
+ 2.7.5
@@ -1 +1 @@
1
- {}
1
+ {}
package/template/Gemfile CHANGED
@@ -3,7 +3,5 @@ source 'https://rubygems.org'
3
3
  # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4
4
  ruby ">= 2.6.10"
5
5
 
6
- # Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
7
- # bound in the template on Cocoapods with next React Native release.
8
- gem 'cocoapods', '>= 1.13', '< 1.15'
9
- gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
6
+ gem 'cocoapods', '~> 1.13'
7
+ gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
@@ -1,11 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- CFPropertyList (3.0.7)
5
- base64
6
- nkf
4
+ CFPropertyList (3.0.6)
7
5
  rexml
8
- activesupport (6.1.7.7)
6
+ activesupport (6.1.7.6)
9
7
  concurrent-ruby (~> 1.0, >= 1.0.2)
10
8
  i18n (>= 1.6, < 2)
11
9
  minitest (>= 5.1)
@@ -17,7 +15,6 @@ GEM
17
15
  httpclient (~> 2.8, >= 2.8.3)
18
16
  json (>= 1.5.1)
19
17
  atomos (0.1.3)
20
- base64 (0.2.0)
21
18
  claide (1.1.0)
22
19
  cocoapods (1.14.3)
23
20
  addressable (~> 2.8)
@@ -57,7 +54,7 @@ GEM
57
54
  netrc (~> 0.11)
58
55
  cocoapods-try (1.2.0)
59
56
  colored2 (3.1.2)
60
- concurrent-ruby (1.2.3)
57
+ concurrent-ruby (1.2.2)
61
58
  escape (0.0.4)
62
59
  ethon (0.16.0)
63
60
  ffi (>= 1.15.0)
@@ -66,39 +63,36 @@ GEM
66
63
  fuzzy_match (2.0.4)
67
64
  gh_inspector (1.1.3)
68
65
  httpclient (2.8.3)
69
- i18n (1.14.5)
66
+ i18n (1.14.1)
70
67
  concurrent-ruby (~> 1.0)
71
- json (2.7.2)
72
- minitest (5.22.3)
68
+ json (2.7.1)
69
+ minitest (5.21.1)
73
70
  molinillo (0.8.0)
74
71
  nanaimo (0.3.0)
75
72
  nap (1.1.0)
76
73
  netrc (0.11.0)
77
- nkf (0.2.0)
78
74
  public_suffix (4.0.7)
79
- rexml (3.2.8)
80
- strscan (>= 3.0.9)
75
+ rexml (3.2.6)
81
76
  ruby-macho (2.5.1)
82
- strscan (3.1.0)
83
77
  typhoeus (1.4.1)
84
78
  ethon (>= 0.9.0)
85
79
  tzinfo (2.0.6)
86
80
  concurrent-ruby (~> 1.0)
87
- xcodeproj (1.24.0)
81
+ xcodeproj (1.23.0)
88
82
  CFPropertyList (>= 2.3.3, < 4.0)
89
83
  atomos (~> 0.1.3)
90
84
  claide (>= 1.0.2, < 2.0)
91
85
  colored2 (~> 3.1)
92
86
  nanaimo (~> 0.3.0)
93
87
  rexml (~> 3.2.4)
94
- zeitwerk (2.6.13)
88
+ zeitwerk (2.6.12)
95
89
 
96
90
  PLATFORMS
97
91
  ruby
98
92
 
99
93
  DEPENDENCIES
100
- activesupport (>= 6.1.7.5, < 7.1.0)
101
- cocoapods (>= 1.13, < 1.15)
94
+ activesupport (>= 6.1.7.3, < 7.1.0)
95
+ cocoapods (~> 1.13)
102
96
 
103
97
  RUBY VERSION
104
98
  ruby 2.6.10p210
@@ -0,0 +1,8 @@
1
+ /**
2
+ * SVG setup to mock react components transformed into images from SVGs
3
+ * Place this file in your project's root __mocks__ directory.
4
+ * https://github.com/kristerkari/react-native-svg-transformer#usage-with-jest
5
+ */
6
+
7
+ module.exports = 'SvgMock';
8
+ module.exports.ReactComponent = 'SvgMock';
@@ -20,7 +20,7 @@ DerivedData
20
20
  *.hmap
21
21
  *.ipa
22
22
  *.xcuserstate
23
- **/.xcode.env.local
23
+ ios/.xcode.env.local
24
24
 
25
25
  # Android/IntelliJ
26
26
  #
@@ -31,8 +31,6 @@ local.properties
31
31
  *.iml
32
32
  *.hprof
33
33
  .cxx/
34
- *.keystore
35
- !debug.keystore
36
34
 
37
35
  # node.js
38
36
  #
@@ -40,6 +38,12 @@ node_modules/
40
38
  npm-debug.log
41
39
  yarn-error.log
42
40
 
41
+ # BUCK
42
+ buck-out/
43
+ \.buckd/
44
+ *.keystore
45
+ !debug.keystore
46
+
43
47
  # fastlane
44
48
  #
45
49
  # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
@@ -56,19 +60,5 @@ yarn-error.log
56
60
  *.jsbundle
57
61
 
58
62
  # Ruby / CocoaPods
59
- **/Pods/
63
+ /ios/Pods/
60
64
  /vendor/bundle/
61
-
62
- # Temporary files created by Metro to check the health of the file watcher
63
- .metro-health-check*
64
-
65
- # testing
66
- /coverage
67
-
68
- # Yarn
69
- .yarn/*
70
- !.yarn/patches
71
- !.yarn/plugins
72
- !.yarn/releases
73
- !.yarn/sdks
74
- !.yarn/versions
@@ -74,9 +74,9 @@ android {
74
74
  buildToolsVersion rootProject.ext.buildToolsVersion
75
75
  compileSdk rootProject.ext.compileSdkVersion
76
76
 
77
- namespace "com.workflow"
77
+ namespace "com.example"
78
78
  defaultConfig {
79
- applicationId "com.workflow"
79
+ applicationId "com.example"
80
80
  minSdkVersion rootProject.ext.minSdkVersion
81
81
  targetSdkVersion rootProject.ext.targetSdkVersion
82
82
  versionCode 1
@@ -107,6 +107,7 @@ android {
107
107
  dependencies {
108
108
  // The version of react-native is set by the React Native Gradle Plugin
109
109
  implementation("com.facebook.react:react-android")
110
+ implementation("com.facebook.react:flipper-integration")
110
111
 
111
112
  if (hermesEnabled.toBoolean()) {
112
113
  implementation("com.facebook.react:hermes-android")
@@ -116,5 +117,5 @@ dependencies {
116
117
  }
117
118
 
118
119
  apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
119
- apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
120
+ apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
120
121
  apply from: "../../node_modules/@brightlayer-ui/react-native-vector-icons/fonts.gradle"
@@ -1,23 +1,17 @@
1
- package com.workflow
1
+ package com.example
2
2
 
3
3
  import com.facebook.react.ReactActivity
4
4
  import com.facebook.react.ReactActivityDelegate
5
5
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6
6
  import com.facebook.react.defaults.DefaultReactActivityDelegate
7
- import android.os.Bundle;
8
7
 
9
8
  class MainActivity : ReactActivity() {
10
- /**
11
- * added for react-native-screens
12
- */
13
- override fun onCreate(savedInstanceState: Bundle?) {
14
- super.onCreate(null)
15
- }
9
+
16
10
  /**
17
11
  * Returns the name of the main component registered from JavaScript. This is used to schedule
18
12
  * rendering of the component.
19
13
  */
20
- override fun getMainComponentName(): String = "blankTemplate"
14
+ override fun getMainComponentName(): String = "example"
21
15
 
22
16
  /**
23
17
  * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
@@ -1,4 +1,4 @@
1
- package com.workflow
1
+ package com.example
2
2
 
3
3
  import android.app.Application
4
4
  import com.facebook.react.PackageList
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
9
9
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
10
10
  import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11
11
  import com.facebook.react.defaults.DefaultReactNativeHost
12
+ import com.facebook.react.flipper.ReactNativeFlipper
12
13
  import com.facebook.soloader.SoLoader
13
14
 
14
15
  class MainApplication : Application(), ReactApplication {
@@ -30,7 +31,7 @@ class MainApplication : Application(), ReactApplication {
30
31
  }
31
32
 
32
33
  override val reactHost: ReactHost
33
- get() = getDefaultReactHost(applicationContext, reactNativeHost)
34
+ get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
34
35
 
35
36
  override fun onCreate() {
36
37
  super.onCreate()
@@ -39,5 +40,6 @@ class MainApplication : Application(), ReactApplication {
39
40
  // If you opted-in for the New Architecture, we load the native entry point for this app.
40
41
  load()
41
42
  }
43
+ ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
42
44
  }
43
45
  }
@@ -17,8 +17,7 @@
17
17
  android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
18
  android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
19
  android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
- android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"
21
- >
20
+ android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
22
21
 
23
22
  <selector>
24
23
  <!--
@@ -1,3 +1,3 @@
1
1
  <resources>
2
- <string name="app_name">blankTemplate</string>
2
+ <string name="app_name">example</string>
3
3
  </resources>
@@ -1,11 +1,11 @@
1
1
  buildscript {
2
2
  ext {
3
3
  buildToolsVersion = "34.0.0"
4
- minSdkVersion = 23
4
+ minSdkVersion = 21
5
5
  compileSdkVersion = 34
6
6
  targetSdkVersion = 34
7
- ndkVersion = "26.1.10909125"
8
- kotlinVersion = "1.9.22"
7
+ ndkVersion = "25.1.8937393"
8
+ kotlinVersion = "1.8.0"
9
9
  }
10
10
  repositories {
11
11
  google()
@@ -1,6 +1,6 @@
1
1
  distributionBase=GRADLE_USER_HOME
2
2
  distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
3
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
4
4
  networkTimeout=10000
5
5
  validateDistributionUrl=true
6
6
  zipStoreBase=GRADLE_USER_HOME
@@ -145,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145
145
  case $MAX_FD in #(
146
146
  max*)
147
147
  # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148
- # shellcheck disable=SC2039,SC3045
148
+ # shellcheck disable=SC3045
149
149
  MAX_FD=$( ulimit -H -n ) ||
150
150
  warn "Could not query maximum file descriptor limit"
151
151
  esac
@@ -153,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
153
153
  '' | soft) :;; #(
154
154
  *)
155
155
  # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156
- # shellcheck disable=SC2039,SC3045
156
+ # shellcheck disable=SC3045
157
157
  ulimit -n "$MAX_FD" ||
158
158
  warn "Could not set maximum file descriptor limit to $MAX_FD"
159
159
  esac
@@ -202,11 +202,11 @@ fi
202
202
  # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203
203
  DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204
204
 
205
- # Collect all arguments for the java command:
206
- # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207
- # and any embedded shellness will be escaped.
208
- # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209
- # treated as '${Hostname}' itself on the command line.
205
+ # Collect all arguments for the java command;
206
+ # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
207
+ # shell script including quotes and variable substitutions, so put them in
208
+ # double quotes to make sure that they get re-expanded; and
209
+ # * put everything else in single quotes, so that it's not re-expanded.
210
210
 
211
211
  set -- \
212
212
  "-Dorg.gradle.appname=$APP_BASE_NAME" \
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
43
43
  %JAVA_EXE% -version >NUL 2>&1
44
44
  if %ERRORLEVEL% equ 0 goto execute
45
45
 
46
- echo. 1>&2
47
- echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48
- echo. 1>&2
49
- echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50
- echo location of your Java installation. 1>&2
46
+ echo.
47
+ echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48
+ echo.
49
+ echo Please set the JAVA_HOME variable in your environment to match the
50
+ echo location of your Java installation.
51
51
 
52
52
  goto fail
53
53
 
@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57
57
 
58
58
  if exist "%JAVA_EXE%" goto execute
59
59
 
60
- echo. 1>&2
61
- echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62
- echo. 1>&2
63
- echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64
- echo location of your Java installation. 1>&2
60
+ echo.
61
+ echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62
+ echo.
63
+ echo Please set the JAVA_HOME variable in your environment to match the
64
+ echo location of your Java installation.
65
65
 
66
66
  goto fail
67
67
 
@@ -1,25 +1,25 @@
1
1
  {
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
- ]
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
  }
@@ -1,4 +1,4 @@
1
- rootProject.name = 'blankTemplate'
1
+ rootProject.name = 'example'
2
2
  apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
3
  include ':app'
4
4
  includeBuild('../node_modules/@react-native/gradle-plugin')
package/template/app.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "name": "blankTemplate",
3
- "displayName": "blankTemplate"
2
+ "name": "example",
3
+ "displayName": "example"
4
4
  }
@@ -0,0 +1,11 @@
1
+
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 82 82" width='82' height='82'>
3
+
4
+ <ellipse cx="41" cy="41" rx="11.2" ry="11.1"/>
5
+ <path d="M72.7,33.9c2.4,10.9-0.8,22.1-8.7,30C51.4,76.6,30.8,76.6,18.2,64S5.4,30.8,18,18.1c5-5,11.4-8.2,18.4-9.2
6
+ c0.3,0.9,0.8,1.8,1.5,2.5c2.3,2.3,6.1,2.3,8.4,0c0.9-0.9,1.5-2.1,1.7-3.5l0,0c0.2-1.8-0.4-3.6-1.7-4.9c-2.3-2.3-6.1-2.3-8.4,0
7
+ c-0.9,0.9-1.5,2.1-1.7,3.3c-7.6,1-14.6,4.6-20,10C2.6,30,2.7,52.2,16.3,65.8s35.9,13.6,49.5-0.1c8.4-8.5,11.9-20.5,9.4-32.2l0,0
8
+ c-1.4-6.4-4.8-12.1-9.5-16.8l0,0C65.7,16.7,71.2,23.3,72.7,33.9z M37.4,7.5L37.4,7.5L37.4,7.5L37.4,7.5z M45.5,7.6
9
+ c-0.1,0.8-0.4,1.5-1,2.1c-1.4,1.4-3.6,1.4-4.9,0c-0.6-0.6-1-1.4-1-2.3l0,0c-0.1-1,0.3-2,1-2.7c1.4-1.4,3.6-1.4,4.9,0
10
+ C45.3,5.5,45.7,6.6,45.5,7.6z"/>
11
+ </svg>
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  presets: ['module:@react-native/babel-preset'],
3
+ // react-native-reanimated/plugin must be listed last
3
4
  plugins: ['react-native-reanimated/plugin'],
4
5
  };
package/template/index.js CHANGED
@@ -1,11 +1,9 @@
1
1
  /**
2
2
  * @format
3
3
  */
4
-
5
4
  import 'intl-pluralrules';
6
5
  import { AppRegistry } from 'react-native';
7
6
  import App from './App';
8
7
  import { name as appName } from './app.json';
9
- import 'react-native-gesture-handler';
10
8
 
11
9
  AppRegistry.registerComponent(appName, () => App);
@@ -8,22 +8,38 @@ require Pod::Executable.execute_command('node', ['-p',
8
8
  platform :ios, min_ios_version_supported
9
9
  prepare_react_native_project!
10
10
 
11
+ # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
12
+ # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
13
+ #
14
+ # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
15
+ # ```js
16
+ # module.exports = {
17
+ # dependencies: {
18
+ # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
19
+ # ```
20
+ flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
21
+
11
22
  linkage = ENV['USE_FRAMEWORKS']
12
23
  if linkage != nil
13
24
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
14
25
  use_frameworks! :linkage => linkage.to_sym
15
26
  end
16
27
 
17
- target 'blankTemplate' do
28
+ target 'example' do
18
29
  config = use_native_modules!
19
30
 
20
31
  use_react_native!(
21
32
  :path => config[:reactNativePath],
33
+ # Enables Flipper.
34
+ #
35
+ # Note that if you have use_frameworks! enabled, Flipper will not work and
36
+ # you should disable the next line.
37
+ :flipper_configuration => flipper_config,
22
38
  # An absolute path to your application root.
23
39
  :app_path => "#{Pod::Config.instance.installation_root}/.."
24
40
  )
25
41
 
26
- target 'blankTemplateTests' do
42
+ target 'exampleTests' do
27
43
  inherit! :complete
28
44
  # Pods for testing
29
45
  end
@@ -33,8 +49,11 @@ target 'blankTemplate' do
33
49
  react_native_post_install(
34
50
  installer,
35
51
  config[:reactNativePath],
36
- :mac_catalyst_enabled => false,
37
- # :ccache_enabled => true
52
+ :mac_catalyst_enabled => false
38
53
  )
39
54
  end
40
- end
55
+
56
+
57
+ pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
58
+ pod 'RNBLUIVectorIcons', :path => '../node_modules/@brightlayer-ui/react-native-vector-icons'
59
+ end