feat(APKUpdate): implement APK update check and enhance build workflow
- 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.
This commit is contained in:
13
src/stores/homeTabPressStore.ts
Normal file
13
src/stores/homeTabPressStore.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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 })),
|
||||
}));
|
||||
Reference in New Issue
Block a user