@brightlayer-ui/react-native-template-routing-typescript 3.0.0-alpha.0 → 3.0.0-alpha.1
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/package.json
CHANGED
|
@@ -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
|
package/template/jest.config.js
CHANGED
|
@@ -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');
|
package/template/package.json
CHANGED
|
@@ -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} />
|
package/template/yarn.lock
CHANGED
|
@@ -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"
|