@momo-kits/foundation 0.160.1-beta.3 → 0.160.1-beta.5

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.
Files changed (2) hide show
  1. package/Text/utils.ts +1 -1
  2. package/package.json +1 -1
package/Text/utils.ts CHANGED
@@ -9,7 +9,7 @@ const MAX_FONT_SCALE = 1.2;
9
9
  const useScaleSize = (size: number) => {
10
10
  const { width } = useWindowDimensions();
11
11
  const context = useContext<any>(MiniAppContext);
12
- const allowFontScale = context?.designSystemConfig?.allowFontScale ?? true;
12
+ const allowFontScale = context?.designSystemConfig?.isBaselineEnabled;
13
13
  if (!allowFontScale) return size;
14
14
 
15
15
  const deviceScale = width / DEFAULT_SCREEN_SIZE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.160.1-beta.3",
3
+ "version": "0.160.1-beta.5",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},