@jobber/components-native 0.70.1-CLEANUPex-46b7571.4 → 0.71.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"react-native-safe-area-context": "^4.5.2",
|
|
83
83
|
"react-native-svg": ">=12.0.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "05bf7ab30a2c51d195e6250ad2757f0bf8d8e696"
|
|
86
86
|
}
|
|
@@ -19,6 +19,7 @@ describe("meta", () => {
|
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
+
// NOTE: Keep this in sync with components/src/utils/meta/meta.test.tsx
|
|
22
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
23
24
|
function isComponent(name: string, value: any): boolean {
|
|
24
25
|
const isFirstLetterUppercase = /^[A-Z]/.test(name);
|
|
@@ -27,6 +28,7 @@ function isComponent(name: string, value: any): boolean {
|
|
|
27
28
|
return isFirstLetterUppercase && isFunctionComponent;
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
// NOTE: Keep this in sync with components/src/utils/meta/meta.test.tsx
|
|
30
32
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
33
|
function isContext(value: any): boolean {
|
|
32
34
|
return (
|
|
@@ -37,6 +39,7 @@ function isContext(value: any): boolean {
|
|
|
37
39
|
);
|
|
38
40
|
}
|
|
39
41
|
|
|
42
|
+
// NOTE: Keep this in sync with components/src/utils/meta/meta.test.tsx
|
|
40
43
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
44
|
function isForwardedRef(name: string, value: any): boolean {
|
|
42
45
|
const isFirstLetterUppercase = /^[A-Z]/.test(name);
|
|
@@ -49,6 +52,7 @@ function isForwardedRef(name: string, value: any): boolean {
|
|
|
49
52
|
);
|
|
50
53
|
}
|
|
51
54
|
|
|
55
|
+
// NOTE: Keep this in sync with components/src/utils/meta/meta.test.tsx
|
|
52
56
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
57
|
function isMemoizedComponent(name: string, value: any): boolean {
|
|
54
58
|
const isFirstLetterUppercase = /^[A-Z]/.test(name);
|
|
@@ -63,6 +67,7 @@ function isMemoizedComponent(name: string, value: any): boolean {
|
|
|
63
67
|
);
|
|
64
68
|
}
|
|
65
69
|
|
|
70
|
+
// NOTE: Keep this in sync with components/src/utils/meta/meta.test.tsx
|
|
66
71
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67
72
|
function findComponentNamesDeep(objectOrFunction: any, name?: string) {
|
|
68
73
|
const entries = [...Object.entries(objectOrFunction)];
|