@momo-kits/foundation 0.109.1 → 0.109.2-beta.1

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.
@@ -34,7 +34,7 @@ const HeaderExtendHeader: React.FC<{
34
34
  headerType = 'default',
35
35
  animatedValue,
36
36
  heightHeader,
37
- headerRightWidth = 0,
37
+ headerRightWidth = 73,
38
38
  inputSearchProps,
39
39
  inputSearchRef,
40
40
  useShadowHeader = true,
@@ -207,7 +207,7 @@ const HeaderToolkitAction: React.FC<any> = ({
207
207
  const showIconMore = tools && totalTools > 1;
208
208
  const isHaveOneTool = tools && totalTools === 1;
209
209
 
210
- if (showIconMore || (useMore && isHaveOneTool)) {
210
+ if (showIconMore || useMore) {
211
211
  iconShortcut = 'navigation_more_icon';
212
212
  shortcutOnPress = onPressIconMore;
213
213
  } else if (isHaveOneTool) {
@@ -7,7 +7,16 @@ import {ApplicationContext, MiniAppContext} from '../index';
7
7
  import {Text} from '../../Text';
8
8
 
9
9
  const SearchHeader = React.forwardRef<InputRef, SearchHeaderProps>(
10
- ({animatedValue, buttonText = 'Huỷ', onPressButtonText, ...props}, ref) => {
10
+ (
11
+ {
12
+ animatedValue,
13
+ buttonText = 'Huỷ',
14
+ onPressButtonText,
15
+ showButtonText = true,
16
+ ...props
17
+ },
18
+ ref
19
+ ) => {
11
20
  const {theme, navigator} = useContext(ApplicationContext);
12
21
  const context = useContext<any>(MiniAppContext);
13
22
 
@@ -63,6 +72,9 @@ const SearchHeader = React.forwardRef<InputRef, SearchHeaderProps>(
63
72
  return true;
64
73
  };
65
74
 
75
+ const isShowButton =
76
+ context?.appId === 'vn.momo.transactionhistory' ? showButtonText : true;
77
+
66
78
  return (
67
79
  <View style={styles.container}>
68
80
  <View style={Styles.flex}>
@@ -75,9 +87,11 @@ const SearchHeader = React.forwardRef<InputRef, SearchHeaderProps>(
75
87
  />
76
88
  </Animated.View>
77
89
  </View>
78
- <TouchableOpacity onPress={goBackSafe} style={styles.searchAction}>
79
- <Text typography={'action_default_bold'}>{buttonText}</Text>
80
- </TouchableOpacity>
90
+ {isShowButton && (
91
+ <TouchableOpacity onPress={goBackSafe} style={styles.searchAction}>
92
+ <Text typography={'action_default_bold'}>{buttonText}</Text>
93
+ </TouchableOpacity>
94
+ )}
81
95
  </View>
82
96
  );
83
97
  }
@@ -138,7 +138,7 @@ const StackScreen: React.FC<ScreenParams> = props => {
138
138
  type: 'ERROR',
139
139
  });
140
140
  if (
141
- ['uat', 'staging'].includes(context.environment) &&
141
+ context.debugLastElement &&
142
142
  lastElement.current?.children?.current?.length > 0
143
143
  ) {
144
144
  Alert.alert(
package/Layout/Screen.tsx CHANGED
@@ -162,7 +162,7 @@ const Screen = forwardRef(
162
162
  headerComponent: Header,
163
163
  footerComponent: Footer,
164
164
  layoutOffset = -56,
165
- headerRightWidth = 110,
165
+ headerRightWidth = 73,
166
166
  backgroundColor,
167
167
  headerType = 'default',
168
168
  floatingButtonProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/foundation",
3
- "version": "0.109.1",
3
+ "version": "0.109.2-beta.1",
4
4
  "description": "React Native Component Kits",
5
5
  "main": "index.ts",
6
6
  "scripts": {},