@umituz/react-native-design-system 4.23.72 → 4.23.74

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.23.72",
3
+ "version": "4.23.74",
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",
@@ -51,7 +51,7 @@ export { ExceptionLogger } from './infrastructure/services/ExceptionLogger';
51
51
  // =============================================================================
52
52
 
53
53
  // Components
54
- export { ErrorBoundary } from './presentation/components/ErrorBoundary';
54
+ export { ErrorBoundary, withErrorBoundary } from './presentation/components/ErrorBoundary';
55
55
  export { ExceptionEmptyState } from './presentation/components/ExceptionEmptyState';
56
56
  export type { ExceptionEmptyStateProps } from './presentation/components/ExceptionEmptyState';
57
57
  export { ExceptionErrorState } from './presentation/components/ExceptionErrorState';
@@ -127,4 +127,18 @@ const getStyles = (tokens: ReturnType<typeof useAppDesignTokens>) =>
127
127
  },
128
128
  });
129
129
 
130
+ /**
131
+ * Higher-order component version of ErrorBoundary
132
+ */
133
+ export function withErrorBoundary<P extends object>(
134
+ WrappedComponent: React.ComponentType<P>,
135
+ fallback?: ReactNode,
136
+ ): React.ComponentType<P> {
137
+ return (props: P) => (
138
+ <ErrorBoundary fallback={fallback}>
139
+ <WrappedComponent {...props} />
140
+ </ErrorBoundary>
141
+ );
142
+ }
143
+
130
144
 
@@ -5,7 +5,7 @@
5
5
  * Presentation Layer - UI Component
6
6
  */
7
7
 
8
- import React from "react";
8
+ import React, { useMemo } from "react";
9
9
  import { View, StyleSheet, TouchableOpacity } from "react-native";
10
10
  import { AtomicIcon, AtomicText } from "../../../atoms";
11
11
  import { useAppDesignTokens } from "../../../theme";
@@ -5,7 +5,7 @@
5
5
  * Presentation Layer - UI Component
6
6
  */
7
7
 
8
- import React from "react";
8
+ import React, { useMemo } from "react";
9
9
  import { View, StyleSheet, TouchableOpacity } from "react-native";
10
10
  import {
11
11
  AtomicIcon,