@umituz/react-native-loading 1.2.0 → 1.2.2

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,11 +1,10 @@
1
1
  {
2
2
  "name": "@umituz/react-native-loading",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
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",
7
7
  "scripts": {
8
- "build": "tsc",
9
8
  "typecheck": "tsc --noEmit",
10
9
  "lint": "tsc --noEmit",
11
10
  "clean": "rm -rf lib",
@@ -29,15 +28,14 @@
29
28
  "url": "https://github.com/umituz/react-native-loading"
30
29
  },
31
30
  "peerDependencies": {
32
- "@umituz/react-native-design-system": ">=1.5.0",
31
+ "@umituz/react-native-design-system": "latest",
33
32
  "react": ">=18.2.0",
34
33
  "react-native": ">=0.74.0"
35
34
  },
36
35
  "devDependencies": {
37
36
  "@types/react": "^18.2.45",
38
37
  "@types/react-native": "^0.73.0",
39
- "@umituz/react-native-design-system": "^1.5.28",
40
- "@umituz/react-native-design-system-theme": "latest",
38
+ "@umituz/react-native-design-system": "latest",
41
39
  "react": "^18.2.0",
42
40
  "react-native": "^0.74.0",
43
41
  "typescript": "^5.3.3",
@@ -51,4 +49,4 @@
51
49
  "README.md",
52
50
  "LICENSE"
53
51
  ]
54
- }
52
+ }
File without changes
package/src/index.ts CHANGED
File without changes
File without changes
File without changes
File without changes
package/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Ümit UZ
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-
package/README.md DELETED
@@ -1,111 +0,0 @@
1
- # @umituz/react-native-loading
2
-
3
- Loading states and animations for React Native apps with breathing animations, skeleton loaders, and state management hooks.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- npm install @umituz/react-native-loading
9
- ```
10
-
11
- ## Peer Dependencies
12
-
13
- - `react` >= 18.2.0
14
- - `react-native` >= 0.74.0
15
- - `@umituz/react-native-design-system` >= 1.5.0
16
-
17
- ## Features
18
-
19
- - ✅ Breathing animation loading state (meditation-inspired)
20
- - ✅ Skeleton loaders with shimmer effect
21
- - ✅ Loading state management hooks
22
- - ✅ App-specific emoji presets
23
- - ✅ Configurable sizes and patterns
24
-
25
- ## Usage
26
-
27
- ### Basic Loading State
28
-
29
- ```typescript
30
- import { LoadingState, useLoading } from '@umituz/react-native-loading';
31
-
32
- const MyScreen = () => {
33
- const { isLoading, startLoading, stopLoading } = useLoading();
34
-
35
- return (
36
- <View>
37
- {isLoading ? (
38
- <LoadingState message="Loading..." />
39
- ) : (
40
- <Content />
41
- )}
42
- </View>
43
- );
44
- };
45
- ```
46
-
47
- ### Skeleton Loader
48
-
49
- ```typescript
50
- import { SkeletonLoader, useLoading } from '@umituz/react-native-loading';
51
-
52
- const ListScreen = () => {
53
- const { isLoading } = useLoading();
54
-
55
- return (
56
- <View>
57
- {isLoading ? (
58
- <SkeletonLoader pattern="list" count={5} />
59
- ) : (
60
- <FlatList data={data} />
61
- )}
62
- </View>
63
- );
64
- };
65
- ```
66
-
67
- ### With Async Wrapper
68
-
69
- ```typescript
70
- import { LoadingState, useLoading } from '@umituz/react-native-loading';
71
-
72
- const DataScreen = () => {
73
- const { isLoading, loadingMessage, withLoading } = useLoading();
74
-
75
- const loadData = () => withLoading(
76
- fetchData(),
77
- 'Loading data...'
78
- );
79
-
80
- return (
81
- <View>
82
- {isLoading && <LoadingState message={loadingMessage} />}
83
- <Button onPress={loadData}>Load</Button>
84
- </View>
85
- );
86
- };
87
- ```
88
-
89
- ## API
90
-
91
- ### Components
92
-
93
- - `LoadingState`: Main loading component with breathing animation
94
- - `SkeletonLoader`: Skeleton loader with shimmer effect
95
-
96
- ### Hooks
97
-
98
- - `useLoading()`: Main loading state management hook
99
- - `useSimpleLoading()`: Simplified loading hook
100
-
101
- ### Utilities
102
-
103
- - `LOADING_EMOJIS`: App-specific emoji presets
104
- - `SIZE_CONFIGS`: Size configuration presets
105
- - `SKELETON_PATTERNS`: Skeleton loader patterns
106
- - `LoadingUtils`: Utility functions for loading states
107
-
108
- ## License
109
-
110
- MIT
111
-