@brightlayer-ui/react-native-template-routing-typescript 3.0.0-alpha.0 → 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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,69 @@
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.2.0 (December 6, 2023)
11
+
12
+ ### Changed
13
+
14
+ - Update dependency package list to support latest `@react-native-reanimated` package.
15
+
16
+ ## v2.1.0 (November 1, 2022)
17
+
18
+ ### Changed
19
+
20
+ - Update to build with React Native 0.70.
21
+
22
+ ## v2.0.0 (December 16, 2021)
23
+
24
+ ### Changed
25
+
26
+ - Changed package namespace from `@pxblue` to `@brightlayer-ui`.
27
+
28
+ ## Package Migration Notice
29
+
30
+ Previous versions listed after this indicator refer to our deprecated `@pxblue` packages.
31
+
32
+ ---
33
+
34
+ ## v2.0.0 (November 3, 2021)
35
+
36
+ ### Changed
37
+
38
+ - Updated to use latest APIs from `@pxblue/react-native-components`.
39
+
40
+ ## v1.3.1 (October 1, 2021)
41
+
42
+ ### Fixed
43
+
44
+ - Added dependency for `@pxblue/react-native-vector-icons`
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.0 (March 31, 2021)
58
+
59
+ ### Changed
60
+ - Updated dependencies to use latest packages.
61
+
62
+ ### Fixed
63
+ - Jest configuration allows default tests to pass.
64
+
65
+ ## v1.0.0 (March 1, 2021)
66
+
67
+ ### Added
68
+
69
+ - Initial routing template for TypeScript projects
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlayer-ui/react-native-template-routing-typescript",
3
- "version": "3.0.0-alpha.0",
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 routing for React Native projects created with the Brightlayer UI CLI.",
11
+ "description": "A template with pre-configured 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"
@@ -76,8 +76,10 @@ GEM
76
76
  netrc (0.11.0)
77
77
  nkf (0.2.0)
78
78
  public_suffix (4.0.7)
79
- rexml (3.2.6)
79
+ rexml (3.2.8)
80
+ strscan (>= 3.0.9)
80
81
  ruby-macho (2.5.1)
82
+ strscan (3.1.0)
81
83
  typhoeus (1.4.1)
82
84
  ethon (>= 0.9.0)
83
85
  tzinfo (2.0.6)
@@ -0,0 +1,74 @@
1
+ # OSX
2
+ #
3
+ .DS_Store
4
+
5
+ # Xcode
6
+ #
7
+ build/
8
+ *.pbxuser
9
+ !default.pbxuser
10
+ *.mode1v3
11
+ !default.mode1v3
12
+ *.mode2v3
13
+ !default.mode2v3
14
+ *.perspectivev3
15
+ !default.perspectivev3
16
+ xcuserdata
17
+ *.xccheckout
18
+ *.moved-aside
19
+ DerivedData
20
+ *.hmap
21
+ *.ipa
22
+ *.xcuserstate
23
+ **/.xcode.env.local
24
+
25
+ # Android/IntelliJ
26
+ #
27
+ build/
28
+ .idea
29
+ .gradle
30
+ local.properties
31
+ *.iml
32
+ *.hprof
33
+ .cxx/
34
+ *.keystore
35
+ !debug.keystore
36
+
37
+ # node.js
38
+ #
39
+ node_modules/
40
+ npm-debug.log
41
+ yarn-error.log
42
+
43
+ # fastlane
44
+ #
45
+ # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46
+ # screenshots whenever they are needed.
47
+ # For more information about the recommended setup visit:
48
+ # https://docs.fastlane.tools/best-practices/source-control/
49
+
50
+ **/fastlane/report.xml
51
+ **/fastlane/Preview.html
52
+ **/fastlane/screenshots
53
+ **/fastlane/test_output
54
+
55
+ # Bundle artifact
56
+ *.jsbundle
57
+
58
+ # Ruby / CocoaPods
59
+ **/Pods/
60
+ /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
@@ -1,3 +1,12 @@
1
1
  module.exports = {
2
2
  preset: 'react-native',
3
+ transformIgnorePatterns: [
4
+ 'node_modules/(?!(|react-native|@react-native/*|@brightlayer-ui/react-native-components|react-native-vector-icons|react-native-reanimated|react-native-animatable|react-native-safe-area-context|react-native-collapsible|react-native-modal|@react-native/polyfills|react-native-status-bar-height)/)',
5
+ ],
6
+ setupFiles: ['./jestSetupFile.js', './node_modules/react-native-gesture-handler/jestSetup.js'],
7
+ moduleNameMapper: {
8
+ '\\.svg': '<rootDir>/__mocks__/svgMock.js',
9
+ '.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
10
+ '\\.(css|less)$': 'identity-obj-proxy',
11
+ },
3
12
  };
@@ -0,0 +1,8 @@
1
+ import 'react-native-gesture-handler/jestSetup';
2
+
3
+ jest.useFakeTimers();
4
+
5
+ jest.mock('react-native-reanimated', () => require('react-native-reanimated/mock'));
6
+
7
+ // Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
8
+ jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
@@ -49,6 +49,7 @@
49
49
  "eslint-plugin-react-hooks": "^4.6.2",
50
50
  "globals": "^15.1.0",
51
51
  "jest": "^29.6.3",
52
+ "jest-transform-stub": "^2.0.0",
52
53
  "prettier": "2.8.8",
53
54
  "react-test-renderer": "18.2.0",
54
55
  "typescript": "5.0.4",
@@ -31,6 +31,7 @@ const MainRouter = (): ReactNode => (
31
31
  drawerStyle: { backgroundColor: 'transparent' },
32
32
  }}
33
33
  drawerContent={(props) => <CustomDrawerContent {...props} />}
34
+ useLegacyImplementation={false}
34
35
  >
35
36
  <Drawer.Screen name="Home" component={Home} />
36
37
  <Drawer.Screen name="PageOne" component={PageOne} />
@@ -41,7 +41,6 @@ export const NavigationDrawer: React.FC<NavDrawerProps> = ({ navigation }) => {
41
41
  <DrawerHeader
42
42
  title={'Brightlayer UI'}
43
43
  subtitle={'React Native Project'}
44
- // fontColor={}
45
44
  icon={{ name: 'menu' }}
46
45
  onIconPress={(): void => {
47
46
  navigation.dispatch(DrawerActions.closeDrawer());
@@ -4829,6 +4829,11 @@ jest-snapshot@^29.7.0:
4829
4829
  pretty-format "^29.7.0"
4830
4830
  semver "^7.5.3"
4831
4831
 
4832
+ jest-transform-stub@^2.0.0:
4833
+ version "2.0.0"
4834
+ resolved "https://registry.yarnpkg.com/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz#19018b0851f7568972147a5d60074b55f0225a7d"
4835
+ integrity sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==
4836
+
4832
4837
  jest-util@^29.7.0:
4833
4838
  version "29.7.0"
4834
4839
  resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc"