- Added `expo-intent-launcher` dependency to support APK launching functionality. - Introduced `APKUpdateBootstrap` component to check for APK updates during app initialization. - Enhanced build workflow in `build.yml` to resolve runtime version and upload APK to the updates server. - Updated `HomeScreen` and `TabsLayout` to manage tab visibility and scroll behavior based on user interactions. - Refactored message bubble styles for improved UI consistency and user experience.
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import { create } from 'zustand';
|
|
|
|
interface HomeTabPressState {
|
|
/** 用于触发首页回到顶部的事件计数器 */
|
|
pressCount: number;
|
|
/** 触发首页 Tab 点击事件 */
|
|
triggerPress: () => void;
|
|
}
|
|
|
|
export const useHomeTabPressStore = create<HomeTabPressState>((set) => ({
|
|
pressCount: 0,
|
|
triggerPress: () => set((state) => ({ pressCount: state.pressCount + 1 })),
|
|
}));
|