@umituz/react-native-design-system 4.25.80 → 4.25.81

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": "@umituz/react-native-design-system",
3
- "version": "4.25.80",
3
+ "version": "4.25.81",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -22,6 +22,11 @@
22
22
  "types": "./src/molecules/index.ts",
23
23
  "default": "./src/molecules/index.ts"
24
24
  },
25
+ "./navigation": {
26
+ "react-native": "./src/molecules/navigation/index.ts",
27
+ "types": "./src/molecules/navigation/index.ts",
28
+ "default": "./src/molecules/navigation/index.ts"
29
+ },
25
30
  "./organisms": {
26
31
  "react-native": "./src/organisms/index.ts",
27
32
  "types": "./src/organisms/index.ts",
@@ -1,14 +1,19 @@
1
1
  import { useFocusEffect } from "@react-navigation/native";
2
- import { useCallback } from "react";
3
2
 
4
3
  /**
5
4
  * useAppFocusEffect Hook
6
5
  *
7
- * A wrapper around React Navigation's useFocusEffect hook.
8
- * Standardizes focus effect usage across all packages and apps.
6
+ * Wrapper around React Navigation's useFocusEffect.
7
+ * Pass a useCallback-wrapped effect to avoid re-running on every render.
8
+ *
9
+ * Usage:
10
+ * useAppFocusEffect(
11
+ * useCallback(() => {
12
+ * doSomething();
13
+ * return () => cleanup();
14
+ * }, [deps])
15
+ * );
9
16
  */
10
- export function useAppFocusEffect(effect: () => void | (() => void)) {
17
+ export function useAppFocusEffect(effect: () => void | (() => void)): void {
11
18
  useFocusEffect(effect);
12
19
  }
13
-
14
- export { useCallback };