@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.
|
@@ -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
|
|
108
|
-
const headerGradient = theme.colors?.gradient
|
|
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;
|