@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.
|
@@ -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 ||
|
|
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
|
-
(
|
|
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
|
-
|
|
79
|
-
<
|
|
80
|
-
|
|
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
|
-
|
|
141
|
+
context.debugLastElement &&
|
|
142
142
|
lastElement.current?.children?.current?.length > 0
|
|
143
143
|
) {
|
|
144
144
|
Alert.alert(
|
package/Layout/Screen.tsx
CHANGED