native-pytech 1.0.228 → 1.0.231
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.
|
@@ -42,24 +42,28 @@ const useAsyncEffectWithoutFirstRender = (effect, deps) => {
|
|
|
42
42
|
}, deps);
|
|
43
43
|
};
|
|
44
44
|
const useAsyncFocusEffect = (effect) => {
|
|
45
|
+
const effectRef = useRef(effect);
|
|
46
|
+
useEffect(() => { effectRef.current = effect; }, [effect]);
|
|
45
47
|
useFocusEffect(useCallback(() => {
|
|
46
48
|
let mounted = true;
|
|
47
49
|
const isMounted = () => mounted;
|
|
48
|
-
void
|
|
50
|
+
void effectRef.current(isMounted);
|
|
49
51
|
return () => { mounted = false; };
|
|
50
|
-
}, [
|
|
52
|
+
}, []));
|
|
51
53
|
};
|
|
52
54
|
const useAsyncFocusEffectWithoutFirstRender = (effect) => {
|
|
53
55
|
const isFirstFocus = useRef(true);
|
|
56
|
+
const effectRef = useRef(effect);
|
|
57
|
+
useEffect(() => { effectRef.current = effect; }, [effect]);
|
|
54
58
|
useFocusEffect(useCallback(() => {
|
|
55
59
|
let mounted = true;
|
|
56
60
|
const isMounted = () => mounted;
|
|
57
61
|
if (isFirstFocus.current)
|
|
58
62
|
isFirstFocus.current = false;
|
|
59
63
|
else
|
|
60
|
-
void
|
|
64
|
+
void effectRef.current(isMounted);
|
|
61
65
|
return () => { mounted = false; };
|
|
62
|
-
}, [
|
|
66
|
+
}, []));
|
|
63
67
|
};
|
|
64
68
|
// ------------------- Export -------------------
|
|
65
69
|
const Hooks = {
|
|
@@ -14,7 +14,8 @@ const addProps = (element, additionalStyles = [], extraProps = {}) => {
|
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
const isValidMail = (mail) => {
|
|
17
|
-
|
|
17
|
+
const at = mail.indexOf('@');
|
|
18
|
+
return at !== -1 && mail.lastIndexOf('.') > at && /\.[a-zA-Z]+$/.test(mail);
|
|
18
19
|
};
|
|
19
20
|
const applyOpacity = (color, opacity) => {
|
|
20
21
|
try {
|
|
@@ -21,12 +21,12 @@ export const colors = {
|
|
|
21
21
|
default: {
|
|
22
22
|
light: {
|
|
23
23
|
background: '#FFFFFF', // secondarySystemGroupedBackground
|
|
24
|
-
background_pressed: 'hsl(0, 0%, 85%)',
|
|
24
|
+
background_pressed: 'hsl(0, 0%, 85%)', // secondarySystemGroupedBackground
|
|
25
25
|
border: 'hsl(240, 2%, 91%)'
|
|
26
26
|
},
|
|
27
27
|
dark: {
|
|
28
|
-
background: '#1C1C1E', //
|
|
29
|
-
background_pressed: 'hsl(240, 2.20%, 22.60%)',
|
|
28
|
+
background: '#1C1C1E', // secondarySystemGroupedBackground
|
|
29
|
+
background_pressed: 'hsl(240, 2.20%, 22.60%)', // tertiarySystemGroupedBackground
|
|
30
30
|
border: 'hsl(240, 3%, 22.5%)'
|
|
31
31
|
}
|
|
32
32
|
},
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "native-pytech",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Libreria de React Native Pytech",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"author": "Matias Tobias Gutierrez",
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "node scripts/build.js",
|
|
11
|
-
"typecheck": "tsc --noEmit",
|
|
12
|
-
"prepublishOnly": "npm run build",
|
|
13
|
-
"release": "dev git && npm version patch && npm publish && dev git"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"dist",
|
|
17
|
-
"LICENSE",
|
|
18
|
-
"README.md"
|
|
19
|
-
],
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"@expo/ui": "~56.0.11",
|
|
22
|
-
"@expo/vector-icons": "^15.0.3",
|
|
23
|
-
"@legendapp/list": "^2.0.19",
|
|
24
|
-
"@legendapp/state": "^3.0.0-beta.45",
|
|
25
|
-
"@react-native-async-storage/async-storage": "~2.2.0",
|
|
26
|
-
"@react-native-masked-view/masked-view": "0.3.2",
|
|
27
|
-
"@supabase/supabase-js": "^2.106.1",
|
|
28
|
-
"color2k": "^2.0.3",
|
|
29
|
-
"date-fns": "^4.1.0",
|
|
30
|
-
"expo": "~56.0.17",
|
|
31
|
-
"expo-blur": "~56.0.4",
|
|
32
|
-
"expo-constants": "~56.0.14",
|
|
33
|
-
"expo-device": "~56.0.4",
|
|
34
|
-
"expo-font": "~56.0.5",
|
|
35
|
-
"expo-glass-effect": "~56.0.4",
|
|
36
|
-
"expo-image": "~56.0.8",
|
|
37
|
-
"expo-linear-gradient": "~56.0.4",
|
|
38
|
-
"expo-linking": "~56.0.11",
|
|
39
|
-
"expo-mesh-gradient": "~56.0.3",
|
|
40
|
-
"expo-router": "~56.2.5",
|
|
41
|
-
"expo-splash-screen": "~56.0.9",
|
|
42
|
-
"expo-sqlite": "*",
|
|
43
|
-
"expo-status-bar": "~56.0.4",
|
|
44
|
-
"expo-symbols": "~56.0.5",
|
|
45
|
-
"expo-system-ui": "~56.0.5",
|
|
46
|
-
"expo-web-browser": "~56.0.6",
|
|
47
|
-
"react": "19.2.3",
|
|
48
|
-
"react-dom": "19.2.3",
|
|
49
|
-
"react-native": "0.85.3",
|
|
50
|
-
"react-native-gesture-handler": "~2.31.1",
|
|
51
|
-
"react-native-reanimated": "4.3.1",
|
|
52
|
-
"react-native-reorderable-list": "^0.17.0",
|
|
53
|
-
"react-native-safe-area-context": "~5.7.0",
|
|
54
|
-
"react-native-screens": "4.25.1",
|
|
55
|
-
"react-native-svg": "^15.15.0",
|
|
56
|
-
"react-native-url-polyfill": "^3.0.0",
|
|
57
|
-
"react-native-web": "~0.21.0",
|
|
58
|
-
"react-native-worklets": "0.8.3"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@types/fontfaceobserver": "^2.1.3",
|
|
62
|
-
"@types/react": "~19.2.2",
|
|
63
|
-
"babel-plugin-module-resolver": "^5.0.3",
|
|
64
|
-
"copyfiles": "^2.4.1",
|
|
65
|
-
"rimraf": "^6.1.3",
|
|
66
|
-
"tsc-alias": "^1.8.16",
|
|
67
|
-
"typescript": "~6.0.3"
|
|
68
|
-
},
|
|
69
|
-
"exports": {
|
|
70
|
-
".": {
|
|
71
|
-
"types": "./dist/index.d.ts",
|
|
72
|
-
"default": "./dist/index.js"
|
|
73
|
-
},
|
|
74
|
-
"./*": {
|
|
75
|
-
"types": "./dist/app/*.d.ts",
|
|
76
|
-
"default": "./dist/app/*.js"
|
|
77
|
-
},
|
|
78
|
-
"./assets/images/*": {
|
|
79
|
-
"default": "./dist/libs/assets/images/*"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"dependencies": {
|
|
83
|
-
"expo": "56.0.17",
|
|
84
|
-
"react": "19.2.3",
|
|
85
|
-
"react-native": "0.85.3"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "native-pytech",
|
|
3
|
+
"version": "1.0.231",
|
|
4
|
+
"description": "Libreria de React Native Pytech",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"author": "Matias Tobias Gutierrez",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "node scripts/build.js",
|
|
11
|
+
"typecheck": "tsc --noEmit",
|
|
12
|
+
"prepublishOnly": "npm run build",
|
|
13
|
+
"release": "dev git && npm version patch && npm publish && dev git"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"LICENSE",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@expo/ui": "~56.0.11",
|
|
22
|
+
"@expo/vector-icons": "^15.0.3",
|
|
23
|
+
"@legendapp/list": "^2.0.19",
|
|
24
|
+
"@legendapp/state": "^3.0.0-beta.45",
|
|
25
|
+
"@react-native-async-storage/async-storage": "~2.2.0",
|
|
26
|
+
"@react-native-masked-view/masked-view": "0.3.2",
|
|
27
|
+
"@supabase/supabase-js": "^2.106.1",
|
|
28
|
+
"color2k": "^2.0.3",
|
|
29
|
+
"date-fns": "^4.1.0",
|
|
30
|
+
"expo": "~56.0.17",
|
|
31
|
+
"expo-blur": "~56.0.4",
|
|
32
|
+
"expo-constants": "~56.0.14",
|
|
33
|
+
"expo-device": "~56.0.4",
|
|
34
|
+
"expo-font": "~56.0.5",
|
|
35
|
+
"expo-glass-effect": "~56.0.4",
|
|
36
|
+
"expo-image": "~56.0.8",
|
|
37
|
+
"expo-linear-gradient": "~56.0.4",
|
|
38
|
+
"expo-linking": "~56.0.11",
|
|
39
|
+
"expo-mesh-gradient": "~56.0.3",
|
|
40
|
+
"expo-router": "~56.2.5",
|
|
41
|
+
"expo-splash-screen": "~56.0.9",
|
|
42
|
+
"expo-sqlite": "*",
|
|
43
|
+
"expo-status-bar": "~56.0.4",
|
|
44
|
+
"expo-symbols": "~56.0.5",
|
|
45
|
+
"expo-system-ui": "~56.0.5",
|
|
46
|
+
"expo-web-browser": "~56.0.6",
|
|
47
|
+
"react": "19.2.3",
|
|
48
|
+
"react-dom": "19.2.3",
|
|
49
|
+
"react-native": "0.85.3",
|
|
50
|
+
"react-native-gesture-handler": "~2.31.1",
|
|
51
|
+
"react-native-reanimated": "4.3.1",
|
|
52
|
+
"react-native-reorderable-list": "^0.17.0",
|
|
53
|
+
"react-native-safe-area-context": "~5.7.0",
|
|
54
|
+
"react-native-screens": "4.25.1",
|
|
55
|
+
"react-native-svg": "^15.15.0",
|
|
56
|
+
"react-native-url-polyfill": "^3.0.0",
|
|
57
|
+
"react-native-web": "~0.21.0",
|
|
58
|
+
"react-native-worklets": "0.8.3"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@types/fontfaceobserver": "^2.1.3",
|
|
62
|
+
"@types/react": "~19.2.2",
|
|
63
|
+
"babel-plugin-module-resolver": "^5.0.3",
|
|
64
|
+
"copyfiles": "^2.4.1",
|
|
65
|
+
"rimraf": "^6.1.3",
|
|
66
|
+
"tsc-alias": "^1.8.16",
|
|
67
|
+
"typescript": "~6.0.3"
|
|
68
|
+
},
|
|
69
|
+
"exports": {
|
|
70
|
+
".": {
|
|
71
|
+
"types": "./dist/index.d.ts",
|
|
72
|
+
"default": "./dist/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./*": {
|
|
75
|
+
"types": "./dist/app/*.d.ts",
|
|
76
|
+
"default": "./dist/app/*.js"
|
|
77
|
+
},
|
|
78
|
+
"./assets/images/*": {
|
|
79
|
+
"default": "./dist/libs/assets/images/*"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"expo": "56.0.17",
|
|
84
|
+
"react": "19.2.3",
|
|
85
|
+
"react-native": "0.85.3"
|
|
86
|
+
}
|
|
87
|
+
}
|