native-pytech 1.0.227 → 1.0.229

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 effect(isMounted);
50
+ void effectRef.current(isMounted);
49
51
  return () => { mounted = false; };
50
- }, [effect]));
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 effect(isMounted);
64
+ void effectRef.current(isMounted);
61
65
  return () => { mounted = false; };
62
- }, [effect]));
66
+ }, []));
63
67
  };
64
68
  // ------------------- Export -------------------
65
69
  const Hooks = {
@@ -1,8 +1,8 @@
1
1
  import { Host, List, Section } from '@expo/ui/swift-ui';
2
- export default ({ children }) => (<Host style={{ flex: 1 }}>
3
- <List>
4
- <Section>
5
- {children}
6
- </Section>
7
- </List>
2
+ export default ({ children }) => (<Host style={{ flex: 1 }}>
3
+ <List>
4
+ <Section>
5
+ {children}
6
+ </Section>
7
+ </List>
8
8
  </Host>);
@@ -62,12 +62,12 @@ export default memo(({ children, saveEnabled, onSave }) => {
62
62
  next(itemKey);
63
63
  };
64
64
  const value = useMemo(() => ({ store, onSubmit, registerItem }), []);
65
- return (<>
66
- <Header saveEnabled={_saveEnabled && (saveEnabled ?? true)} onPressSave={onPressSave}/>
67
- <Screen>
68
- <Provider value={value}>
69
- {children}
70
- </Provider>
71
- </Screen>
65
+ return (<>
66
+ <Header saveEnabled={_saveEnabled && (saveEnabled ?? true)} onPressSave={onPressSave}/>
67
+ <Screen>
68
+ <Provider value={value}>
69
+ {children}
70
+ </Provider>
71
+ </Screen>
72
72
  </>);
73
73
  });
@@ -25,7 +25,7 @@ export const colors = {
25
25
  border: 'hsl(240, 2%, 91%)'
26
26
  },
27
27
  dark: {
28
- background: '#2C2C2E', // tertiarySystemGroupedBackground
28
+ background: '#1C1C1E', // tertiarySystemGroupedBackground
29
29
  background_pressed: 'hsl(240, 2.20%, 22.60%)',
30
30
  border: 'hsl(240, 3%, 22.5%)'
31
31
  }
package/package.json CHANGED
@@ -1,87 +1,87 @@
1
- {
2
- "name": "native-pytech",
3
- "version": "1.0.227",
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.229",
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
+ }