@umituz/react-native-loading 1.0.2 → 1.1.1

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-loading",
3
- "version": "1.0.2",
3
+ "version": "1.1.1",
4
4
  "description": "Loading states and animations for React Native apps with breathing animations, skeleton loaders, and state management hooks",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -37,7 +37,7 @@
37
37
  "@types/react": "^18.2.45",
38
38
  "@types/react-native": "^0.73.0",
39
39
  "@umituz/react-native-design-system": "^1.5.28",
40
- "@umituz/react-native-theme": "latest",
40
+ "@umituz/react-native-design-system-theme": "latest",
41
41
  "react": "^18.2.0",
42
42
  "react-native": "^0.74.0",
43
43
  "typescript": "^5.3.3",
@@ -111,6 +111,9 @@ export const LOADING_EMOJIS = {
111
111
  shopping: '🛍️',
112
112
  cooking: '👨‍🍳',
113
113
  gaming: '🎮',
114
+ video: '🎬',
115
+ social: '📱',
116
+ chat: '💬',
114
117
  default: '⌛',
115
118
  } as const;
116
119
 
@@ -229,6 +232,15 @@ export class LoadingUtils {
229
232
  if (normalizedCategory.includes('gaming') || normalizedCategory.includes('game')) {
230
233
  return LOADING_EMOJIS.gaming;
231
234
  }
235
+ if (normalizedCategory.includes('video') || normalizedCategory.includes('film') || normalizedCategory.includes('movie')) {
236
+ return LOADING_EMOJIS.video;
237
+ }
238
+ if (normalizedCategory.includes('social') || normalizedCategory.includes('feed')) {
239
+ return LOADING_EMOJIS.social;
240
+ }
241
+ if (normalizedCategory.includes('chat') || normalizedCategory.includes('message')) {
242
+ return LOADING_EMOJIS.chat;
243
+ }
232
244
 
233
245
  return LOADING_EMOJIS.default;
234
246
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  import React, { useEffect, useRef } from 'react';
14
14
  import { View, StyleSheet, Animated, Easing, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
15
- import { useAppDesignTokens, AtomicText } from '@umituz/react-native-design-system';
15
+ import { AtomicText, useAppDesignTokens } from '@umituz/react-native-design-system';
16
16
  import type { LoadingSize } from '../../domain/entities/Loading';
17
17
  import {
18
18
  SIZE_CONFIGS,