native-pytech 1.0.209 → 1.0.211

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.
@@ -6,5 +6,5 @@ declare const useApp: () => {
6
6
  fontScale: number;
7
7
  };
8
8
  export { useApp };
9
- declare const _default: import("react").MemoExoticComponent<({ listStackNames, getBackgroundColor, getSession, renderItemLoading, onLoadingRealsed, }: Props) => import("react").JSX.Element>;
9
+ declare const _default: import("react").MemoExoticComponent<({ children, getBackgroundColor, getSession, renderItemLoading, onLoadingRealsed, }: Props) => import("react").JSX.Element>;
10
10
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { memo, useMemo, useState, useRef } from "react";
2
- import { Stack, useRouter } from "expo-router";
3
2
  import { useColorScheme, useWindowDimensions, View, StyleSheet } from "react-native";
4
3
  import { SafeAreaProvider } from 'react-native-safe-area-context';
5
4
  import { DarkTheme, DefaultTheme, ThemeProvider } from 'expo-router';
@@ -11,7 +10,7 @@ import colors from "../constants";
11
10
  import './styles.css';
12
11
  const [Provider, useApp] = Utils.createCtx();
13
12
  export { useApp };
14
- export default memo(({ listStackNames = [], getBackgroundColor, getSession, renderItemLoading = ({ colorScheme }) => (colorScheme === 'dark' ?
13
+ export default memo(({ children, getBackgroundColor, getSession, renderItemLoading = ({ colorScheme }) => (colorScheme === 'dark' ?
15
14
  <LoginSvgDark width={200} height={200}/>
16
15
  :
17
16
  <LoginSvg width={200} height={200}/>), onLoadingRealsed, }) => {
@@ -19,13 +18,12 @@ export default memo(({ listStackNames = [], getBackgroundColor, getSession, rend
19
18
  const colorScheme = useColorScheme();
20
19
  const Theme = colors[colorScheme];
21
20
  const { fontScale } = useWindowDimensions();
22
- const router = useRouter();
23
21
  const [isLoading, setIsLoading] = useState(true);
24
22
  const hasSessionRef = useRef(false);
25
23
  // -------------- Effects --------------
26
24
  Hooks.useEffectWithoutFirstRender(() => {
27
25
  if (!isLoading)
28
- onLoadingRealsed?.({ router, hasSession: hasSessionRef.current });
26
+ onLoadingRealsed?.({ hasSession: hasSessionRef.current });
29
27
  }, [isLoading]);
30
28
  Hooks.useAsyncEffect(async (isMounted) => {
31
29
  hasSessionRef.current = (await getSession?.()) ?? true;
@@ -43,9 +41,7 @@ export default memo(({ listStackNames = [], getBackgroundColor, getSession, rend
43
41
  return (<SafeAreaProvider>
44
42
  <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
45
43
  <Provider value={value}>
46
- <Stack screenOptions={{ headerShown: false }}>
47
- {listStackNames?.map((name) => (<Stack.Screen key={name} name={name}/>))}
48
- </Stack>
44
+ {children}
49
45
  </Provider>
50
46
  </ThemeProvider>
51
47
  </SafeAreaProvider>);
@@ -1,10 +1,6 @@
1
1
  import { ColorSchemeType } from "../../../libs/constants/colors";
2
- import { ImperativeRouter } from "expo-router";
3
2
  type Props = {
4
- /**
5
- Lista de nombres de los Stacks que se deben renderizar.
6
- */
7
- listStackNames?: string[];
3
+ children?: React.ReactNode;
8
4
  /**
9
5
  Función para obtener el color de fondo de las paginas por defecto.
10
6
  */
@@ -27,8 +23,7 @@ type Props = {
27
23
  Función para ejecutar cuando se realice el cambio de estado de loading a false.
28
24
  Se utiliza para redirigir a la página de inicio.
29
25
  */
30
- onLoadingRealsed?: ({ router, hasSession }: {
31
- router: ImperativeRouter;
26
+ onLoadingRealsed?: ({ hasSession }: {
32
27
  hasSession: boolean;
33
28
  }) => void;
34
29
  };
package/package.json CHANGED
@@ -1,85 +1,87 @@
1
- {
2
- "name": "native-pytech",
3
- "version": "1.0.209",
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.3",
31
- "expo-blur": "~56.0.3",
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.5",
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.12"
84
- }
85
- }
1
+ {
2
+ "name": "native-pytech",
3
+ "version": "1.0.211",
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.3",
31
+ "expo-blur": "~56.0.3",
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.5",
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
+ }