@momo-kits/foundation 0.112.1-beta.6 → 0.112.1-beta.7

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/Layout/Screen.tsx CHANGED
@@ -1,6 +1,5 @@
1
1
  import {StackNavigationOptions, useHeaderHeight} from '@react-navigation/stack';
2
2
  import React, {
3
- Children,
4
3
  forwardRef,
5
4
  Fragment,
6
5
  ReactNode,
@@ -44,7 +43,6 @@ import {
44
43
  HeaderTitle,
45
44
  } from '../Application/Components';
46
45
  import {SearchHeader} from '../Application/Components/SearchHeader';
47
- import {Skeleton} from '@momo-kits/foundation';
48
46
 
49
47
  export interface ScreenProps extends ViewProps {
50
48
  /**
@@ -176,7 +174,6 @@ const Screen = forwardRef(
176
174
  animatedValue: customAnimatedValue,
177
175
  headerBackground,
178
176
  gradientColor,
179
- isLoading,
180
177
  }: ScreenProps,
181
178
  ref: any
182
179
  ) => {
@@ -507,16 +504,6 @@ const Screen = forwardRef(
507
504
  }
508
505
  };
509
506
 
510
- const generateSkeleton = () => {
511
- if (children) {
512
- return Children.toArray(children).map((item, index) => {
513
- return (
514
- <Skeleton key={`Skeleton${index}`} style={{marginTop: Spacing.M}} />
515
- );
516
- });
517
- }
518
- };
519
-
520
507
  return (
521
508
  <View
522
509
  style={[
@@ -556,11 +543,7 @@ const Screen = forwardRef(
556
543
  style={Styles.flex}>
557
544
  {renderAnimatedHeader()}
558
545
 
559
- {isLoading
560
- ? generateSkeleton()
561
- : useGridLayout
562
- ? renderContent(children)
563
- : children}
546
+ {useGridLayout ? renderContent(children) : children}
564
547
  </Component>
565
548
 
566
549
  {floatingButtonProps && (
package/index.ts CHANGED
@@ -4,28 +4,13 @@ import {
4
4
  useSafeAreaInsets,
5
5
  } from 'react-native-safe-area-context';
6
6
  import LinearGradient from 'react-native-linear-gradient';
7
- import {Configs} from './Consts';
7
+ // import {Configs} from './Consts';
8
8
 
9
9
  if (typeof (global as any)?.miniAppApi?.dispatch === 'function') {
10
- (global as any)?.miniAppApi?.dispatch?.(
11
- 'getFeatureById',
12
- 'platform_config',
13
- (res: any) => {
14
- const config = JSON.parse(res?.param);
15
- const designSystemUrl = config?.design_system;
16
- if (designSystemUrl) {
17
- fetch(designSystemUrl)
18
- .then(res => res.json())
19
- .then(data => {
20
- if (data) {
21
- Configs.headerBar = data?.headerBar;
22
- Configs.headerGradient = data?.headerGradient;
23
- Configs.trustBanner = data?.trustBanner;
24
- }
25
- });
26
- }
27
- }
28
- );
10
+ // const features = (global as any)?.miniAppApi?.dispatch?.('platform_config');
11
+ // const designSystemJson = features[0].designSystem;
12
+ // const config = JSON.parse(designSystemJson);
13
+ // Configs.trustBanner = config?.trustBanner;
29
14
  }
30
15
 
31
16
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.112.1-beta.6",
3
+ "version": "0.112.1-beta.7",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},