@momo-kits/foundation 0.165.1-beta.5 → 0.165.1-sp.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.
- package/Application/BottomTab/index.tsx +12 -11
- package/package.json +1 -1
|
@@ -233,17 +233,18 @@ const BottomTab: React.FC<BottomTabProps> = ({
|
|
|
233
233
|
});
|
|
234
234
|
}, [itemWidth, indicatorAnimated]);
|
|
235
235
|
|
|
236
|
-
//
|
|
237
|
-
//
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
)
|
|
236
|
+
// TEMP: commented out to test whether the blur reset is needed on a real host.
|
|
237
|
+
// Without it, pushing a screen from a tab other than the first leaves the flag true, so that
|
|
238
|
+
// pushed screen gets the host floating-arrow instead of its own card swipe-back.
|
|
239
|
+
// useFocusEffect(
|
|
240
|
+
// React.useCallback(() => {
|
|
241
|
+
// NativeModules?.MiniAppModule?.setShouldUseFloatingArrowBack?.(
|
|
242
|
+
// activeIndex.current !== 0,
|
|
243
|
+
// );
|
|
244
|
+
// return () =>
|
|
245
|
+
// NativeModules?.MiniAppModule?.setShouldUseFloatingArrowBack?.(false);
|
|
246
|
+
// }, []),
|
|
247
|
+
// );
|
|
247
248
|
|
|
248
249
|
const onFocus = (e: any) => {
|
|
249
250
|
activeIndex.current = tabs.findIndex(i => e.target.includes(i.name));
|