@momo-kits/foundation 0.110.1-optimize.2 → 0.110.1-optimize.4

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.
@@ -228,7 +228,7 @@ const TitleUser: React.FC<TitleUserProps> = ({
228
228
  }
229
229
  }
230
230
 
231
- if (typeof image === 'string') {
231
+ if (typeof image === 'string' && image) {
232
232
  return <Image source={{uri: image}} style={styles.circle} />;
233
233
  }
234
234
 
@@ -35,7 +35,7 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
35
35
  const navigator = useRef(new Navigator(navigationRef, isReady));
36
36
  const [showGrid, setShowGrid] = useState(false);
37
37
 
38
- let config = null;
38
+ let config: any = null;
39
39
  try {
40
40
  config = JSON.parse(
41
41
  NativeModules?.ConfigsModule?.getConfigSync?.('DESIGN_SYSTEM') || ''
@@ -104,8 +104,8 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
104
104
  });
105
105
  };
106
106
 
107
- const headerBackground = theme.assets?.headerBackground || config?.headerBar;
108
- const headerGradient = theme.colors?.gradient || config?.headerGradient;
107
+ const headerBackground = config?.headerBar || theme.assets?.headerBackground;
108
+ const headerGradient = config?.headerGradient || theme.colors?.gradient;
109
109
 
110
110
  return (
111
111
  <SafeAreaProvider>
package/Text/index.tsx CHANGED
@@ -111,6 +111,9 @@ const getTypoStyle = (typo: Typography, newFontFamily?: string) => {
111
111
  fontFamily = `${font}-${MomoTrustSans[fontWeight]}${style}`;
112
112
  break;
113
113
  }
114
+ case 'Montserrat-Bold':
115
+ case 'iCielPanton-Black':
116
+ case 'iCielBCCubano-Normal':
114
117
  case 'MomoTrustDisplay':
115
118
  case 'MomoSignature': {
116
119
  fontFamily = font;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.110.1-optimize.2",
3
+ "version": "0.110.1-optimize.4",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},