@momo-kits/foundation 0.113.0-optimize.3-beta.9 → 0.113.0-optimize.3-beta.11

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.
@@ -224,8 +224,10 @@ const HeaderToolkitAction: React.FC<any> = ({
224
224
 
225
225
  navigator?.maxApi?.dispatchFunction?.(
226
226
  'showTools',
227
- tools,
228
- context,
227
+ {
228
+ tools,
229
+ context,
230
+ },
229
231
  (key: string) => {
230
232
  for (const group of tools) {
231
233
  const pressedTool = group?.items?.find?.(
@@ -33,7 +33,7 @@ const Skeleton: React.FC<SkeletonTypes> = ({style}) => {
33
33
  duration: 1000,
34
34
  easing: Easing.linear,
35
35
  useNativeDriver: Platform.OS !== 'web',
36
- })
36
+ }),
37
37
  );
38
38
  }, [beginShimmerPosition]);
39
39
 
@@ -78,21 +78,6 @@ const Skeleton: React.FC<SkeletonTypes> = ({style}) => {
78
78
  );
79
79
  };
80
80
 
81
- /**
82
- * SkeletonProvider component provides a context for managing the loading state
83
- * and applies a layout animation when the loading state changes.
84
- *
85
- * @param {boolean} loading - Indicates whether the skeleton loading state is active.
86
- * @param {React.ReactNode} children - The child components to be rendered within the provider.
87
- *
88
- * @example
89
- * <SkeletonProvider loading={true}>
90
- * <YourComponent />
91
- * </SkeletonProvider>
92
- *
93
- * The layout animation is configured using LayoutAnimation.configureNext, which animates the opacity of the components over 500 milliseconds with an ease-in-ease-out effect.
94
- */
95
-
96
81
  const SkeletonProvider: React.FC<{loading: boolean}> = ({
97
82
  loading = true,
98
83
  children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.113.0-optimize.3-beta.9",
3
+ "version": "0.113.0-optimize.3-beta.11",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},