Files
Folo/apps/mobile/package.json
T
Innei f21b9e7bf0 refactor: replace @react-navigation and expo-router (#3151)
* init

* init

* refactor(mobile): enhance tab navigation and structure

- Added `TabScreenModule` and `TabScreenView` to support dynamic tab management.
- Replaced `FOTabBarController` with a more streamlined `UITabBarController` implementation.
- Updated `TabBarModule` to utilize new tab switching logic and event handling.
- Modified `TabBarRootView` to manage tab views more effectively and handle tab index changes.
- Adjusted main application file to integrate new tab components and improve navigation flow.

These changes aim to improve the tab navigation experience and maintainability of the codebase.

* tabbar

* refactor(mobile): streamline navigation and tab management

- Refactored main application structure to enhance tab navigation, integrating `BottomTabs` and `TabRoot` components for improved tab management.
- Updated `NavigationHeader` and `SafeNavigationScrollView` to better handle header visibility and scrolling behavior.
- Introduced `ScreenItemContext` for managing screen state and scroll position across navigation.
- Cleaned up unused imports and optimized component structure for better maintainability.

These changes aim to improve the overall navigation experience and code organization within the mobile application.

* update

* feat(mobile): implement BottomTabProvider for enhanced tab management

- Introduced `BottomTabProvider` component to manage tab visibility and scroll view context.
- Refactored `BottomTabs` to utilize context for background opacity and tab visibility, simplifying the component structure.
- Removed the deprecated `TabClient` component to streamline the tab implementation.
- Added a null check in `Tabbar` to prevent rendering when there are no tab screens.

These changes aim to improve the organization and functionality of the tab navigation system within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>

* update

* update

* update

* update

* update

* feat(mobile): integrate ErrorBoundary and enhance navigation context

- Added `ErrorBoundary` component to handle errors gracefully within the application.
- Integrated `BottomTabProvider` to manage tab visibility and scroll view context more effectively.
- Refactored navigation components to utilize new context for improved state management.
- Updated `SafeNavigationScrollView` and `Settings` components to streamline scrolling behavior and context usage.
- Removed deprecated code and optimized component structure for better maintainability.

These changes enhance the user experience by providing error handling and improving navigation management.

* feat(mobile): enhance navigation and layout components

- Registered new screens (`TermsScreen`, `LoginScreen`, `SignUpScreen`, `ForgetPasswordScreen`, `TwoFactorAuthScreen`) with the `NavigationSitemapRegistry` for improved navigation management.
- Adjusted layout properties in `HeaderElements` and `NavigationHeader` for better alignment and responsiveness.
- Refactored `Tabbar` to remove unnecessary animated reactions, optimizing performance.
- Exported `ActionGroup` component for better reusability in `TimelineSelectorProvider`.
- Updated `DebugScreen` to utilize the new navigation methods for component presentation.

These changes improve the overall navigation experience and component structure within the mobile application.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): implement new architecture support and refactor TabBar components

- Added support for the new architecture in the iOS podspec by conditionally defining `OTHER_SWIFT_FLAGS`.
- Refactored `TabBarPortalModule`, `TabBarRootView`, and `TabScreenView` to improve structure and maintainability.
- Replaced native view components with standard React Native views in `TabBarPortal`, `TabRoot`, and `TabScreen` for better compatibility and performance.
- Updated import paths for `TabScreenProps` to ensure correct type usage.

These changes enhance the navigation experience and prepare the codebase for future architecture improvements.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): refactor navigation and onboarding components

- Removed outdated navigation dependencies from `package.json` to streamline the project.
- Enhanced `TabBarRootView` to improve tab switching animations and manage view transitions more effectively.
- Updated `App` component structure for better readability and integration of onboarding logic.
- Introduced `OnboardingScreen` with improved layout and navigation handling.
- Refactored navigation context types to include additional screen options for better flexibility.

These changes enhance the navigation experience and prepare the application for future onboarding features.

Signed-off-by: Innei <tukon479@gmail.com>

* feat(mobile): enhance intent handling with navigation integration

- Added navigation support in `useIntentHandler` to handle incoming URLs more effectively.
- Integrated `FollowScreen` for presenting user-specific content based on URL parameters.
- Updated effect dependencies to include navigation for improved functionality.

These changes improve the handling of deep links and enhance the user experience when navigating to the follow screen.

Signed-off-by: Innei <tukon479@gmail.com>

* chore: clean up pnpm-lock.yaml by removing unused navigation dependencies

- Removed outdated navigation packages including `@react-navigation/bottom-tabs`, `@react-navigation/drawer`, and `@react-navigation/native` to streamline the lock file.
- Cleaned up unnecessary entries and peer dependencies to improve maintainability and reduce clutter.

These changes help in optimizing the dependency management for the project.

Signed-off-by: Innei <tukon479@gmail.com>

* lint

Signed-off-by: Innei <tukon479@gmail.com>

* chore: auto-fix linting and formatting issues

* fix

Signed-off-by: Innei <tukon479@gmail.com>

* update

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: update PickerIos component and remove FeedDrawer

- Added import for Portal in PickerIos component.
- Removed the FeedDrawer component entirely, cleaning up unused code.
- Replaced router.dismiss() with navigation.dismiss() in list screen options for better navigation handling.

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-19 22:35:49 +08:00

141 lines
4.4 KiB
JSON

{
"name": "@follow/mobile",
"version": "0.1.1",
"private": true,
"main": "src/main.tsx",
"scripts": {
"android": "expo run:android",
"db:generate": "drizzle-kit generate",
"dev": "npm run start",
"ios": "expo run:ios",
"ios:device": "expo run:ios --device",
"lint": "expo lint",
"start": "expo start --dev-client",
"start:clean": "expo start --dev-client --clear",
"typecheck": "tsc --noEmit",
"web": "expo start --web"
},
"dependencies": {
"@better-auth/expo": "1.2.4",
"@expo/react-native-action-sheet": "4.1.1",
"@expo/vector-icons": "14.0.4",
"@follow/components": "workspace:*",
"@follow/constants": "workspace:*",
"@follow/hooks": "workspace:*",
"@follow/models": "workspace:*",
"@follow/shared": "workspace:*",
"@follow/utils": "workspace:*",
"@gorhom/portal": "1.0.14",
"@hookform/resolvers": "4.1.3",
"@react-native-community/image-editor": "4.3.0",
"@react-native-firebase/analytics": "21.12.0",
"@react-native-firebase/app": "21.12.0",
"@react-native-firebase/app-check": "21.12.0",
"@react-native-firebase/crashlytics": "21.12.0",
"@react-native-picker/picker": "2.11.0",
"@shopify/flash-list": "1.7.3",
"@tanstack/query-sync-storage-persister": "5.68.0",
"@tanstack/react-query": "5.68.0",
"@tanstack/react-query-persist-client": "5.68.0",
"@types/qrcode": "1.5.5",
"better-auth": "1.2.4",
"cookie-es": "2.0.0",
"dayjs": "1.11.13",
"dnum": "2.14.0",
"es-toolkit": "1.33.0",
"expo": "52.0.39",
"expo-apple-authentication": "7.1.3",
"expo-av": "15.0.2",
"expo-blur": "14.0.3",
"expo-build-properties": "0.13.2",
"expo-clipboard": "7.0.1",
"expo-constants": "17.0.8",
"expo-dev-client": "5.0.14",
"expo-document-picker": "13.0.3",
"expo-file-system": "18.0.11",
"expo-haptics": "14.0.1",
"expo-image": "2.0.6",
"expo-image-manipulator": "13.0.6",
"expo-image-picker": "~16.0.6",
"expo-linear-gradient": "14.0.2",
"expo-linking": "7.0.5",
"expo-localization": "16.0.1",
"expo-media-library": "17.0.6",
"expo-secure-store": "14.0.1",
"expo-sharing": "13.0.1",
"expo-splash-screen": "0.29.22",
"expo-sqlite": "15.1.2",
"expo-status-bar": "2.0.1",
"expo-symbols": "0.2.2",
"expo-system-ui": "4.0.8",
"expo-updates": "0.27.3",
"expo-web-browser": "14.0.2",
"hono": "4.7.4",
"immer": "10.1.1",
"jotai": "2.12.2",
"lru-cache": "11.0.2",
"nanoid": "5.1.3",
"nativewind": "4.1.23",
"ofetch": "1.4.1",
"qrcode": "1.5.4",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-error-boundary": "5.0.0",
"react-hook-form": "7.54.2",
"react-native": "0.77.1",
"react-native-awesome-slider": "2.9.0",
"react-native-bouncy-checkbox": "4.1.2",
"react-native-color-matrix-image-filters": "7.0.2",
"react-native-gesture-handler": "2.24.0",
"react-native-image-colors": "2.4.0",
"react-native-ios-context-menu": "3.1.0",
"react-native-ios-utilities": "5.1.2",
"react-native-keyboard-controller": "1.16.7",
"react-native-otp-entry": "1.8.3",
"react-native-pager-view": "6.7.0",
"react-native-reanimated": "3.17.1",
"react-native-root-siblings": "5.0.1",
"react-native-safe-area-context": "5.3.0",
"react-native-screens": "4.9.2",
"react-native-sheet-transitions": "0.1.2",
"react-native-svg": "15.11.2",
"react-native-track-player": "4.1.1",
"react-native-uikit-colors": "0.3.9",
"react-native-video": "6.10.2",
"react-native-volume-manager": "2.0.8",
"react-native-web": "0.19.13",
"react-native-webview": "13.13.4",
"shiki": "3.2.1",
"tailwindcss": "3.4.17",
"usehooks-ts": "3.1.1",
"zeego": "3.0.5",
"zod": "3.24.2",
"zustand": "5.0.3"
},
"devDependencies": {
"@babel/core": "7.26.10",
"@types/react": "18.3.12",
"babel-plugin-inline-import": "3.0.0",
"babel-plugin-module-resolver": "5.0.2",
"drizzle-kit": "0.30.5",
"eas-cli": "15.0.15",
"expo-drizzle-studio-plugin": "0.1.1",
"postcss": "8.5.3"
},
"appName": "Folo",
"expo": {
"install": {
"exclude": [
"react-native@~0.76.6",
"react-native-gesture-handler@~2.20.0",
"react-native-screens@~4.4.0",
"react-native-safe-area-context@~4.12.0",
"react-native-webview@~13.12.5"
]
},
"autolinking": {
"nativeModulesDir": "./native"
}
}
}