@momo-kits/foundation 0.154.1-beta.3 → 0.154.1-beta.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.
@@ -45,9 +45,6 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
45
45
  }) => {
46
46
  const context = useContext<any>(MiniAppContext);
47
47
  const [currentContext, setCurrentContext] = useState({});
48
-
49
- const isBaselineEnabled = context?.isBaselineEnabled ?? false;
50
-
51
48
  return (
52
49
  <SafeAreaProvider>
53
50
  <MiniAppContext.Provider
@@ -55,7 +52,6 @@ const NavigationContainer: React.FC<NavigationContainerProps> = ({
55
52
  ...context,
56
53
  ...currentContext,
57
54
  features,
58
- isBaselineEnabled,
59
55
  }}
60
56
  >
61
57
  <Navigation
package/Text/index.tsx CHANGED
@@ -2,7 +2,7 @@ import React, { useContext } from 'react';
2
2
  import { Text as RNText, TextProps as RNTextProps, View } from 'react-native';
3
3
  import styles from './styles';
4
4
  import { Typography, TypographyWeight } from './types';
5
- import { ApplicationContext, MiniAppContext, SkeletonContext } from '../Context';
5
+ import { ApplicationContext, SkeletonContext } from '../Context';
6
6
  import { scaleSize, useScaleSize } from './utils';
7
7
  import { Skeleton } from '../Skeleton';
8
8
  import { Colors } from '../Consts';
@@ -156,7 +156,6 @@ const Text: React.FC<TextProps> = ({
156
156
  ...rest
157
157
  }) => {
158
158
  const { theme } = useContext(ApplicationContext);
159
- const context = useContext<any>(MiniAppContext);
160
159
  const skeleton = useContext(SkeletonContext);
161
160
  const textStyle = TypoStyles(typography, fontFamily, maxScaleRate);
162
161
 
@@ -166,16 +165,6 @@ const Text: React.FC<TextProps> = ({
166
165
  );
167
166
  }
168
167
 
169
- // config baseline enabled
170
- const isDebugBaseline = context?.isBaselineEnabled ?? false;
171
-
172
- const baseLineStyle = isDebugBaseline
173
- ? {
174
- borderWidth: 1,
175
- borderColor: Colors.green_06,
176
- }
177
- : {};
178
-
179
168
  if (skeleton.loading) {
180
169
  return (
181
170
  <View style={style}>
@@ -203,9 +192,10 @@ const Text: React.FC<TextProps> = ({
203
192
  style={[
204
193
  style,
205
194
  textStyle,
206
- baseLineStyle,
207
195
  {
208
196
  color: color ?? theme.colors.text.default,
197
+ borderWidth: 1,
198
+ borderColor: Colors.green_06,
209
199
  },
210
200
  ]}
211
201
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.154.1-beta.3",
3
+ "version": "0.154.1-beta.4",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},