Commit Graph
66 Commits
Author SHA1 Message Date
DIYgod d5b579f4f4 feat(mobile): entries loading indicator 2025-04-03 23:47:31 +08:00
Innei 46e5943ee8 fix(mobile): update pager functionality to use activeViews for page selection
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 21:36:47 +08:00
Innei f08d2033da refactor(mobile): update EntryListEmpty styles and enhance TimelineViewSelector functionality
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-03 21:29:43 +08:00
DIYgod d237ad1b9d feat(mobile): handle empty entry list 2025-04-03 21:20:44 +08:00
Stephen Zhou 7efa6aa96a feat(mobile): translation for operation (#3396) 2025-04-03 12:25:54 +08:00
Whitewater 25d253ff33 feat: android prototype (#3376)
* fix(mobile): mock webview module for Android

* fix(mobile): disable new architecture for track player workaround

* chore(mobile): add @react-native-menu/menu dependency

* fix(mobile): handle undefined index in PagerList onIndexChange

* fix(mobile): add error handling for stream fetch response

* fix(mobile): update aspect ratio handling for video components

* fix(mobile): mock Galeria component

* fixup! fix(mobile): update aspect ratio handling for video components

* chore(ci): add GitHub Actions workflow for building Android app

* fix(mobile): improve CocoaPods pre-install script to handle missing CocoaPods

* fix(mobile): move splash screen image configuration to Android-specific settings

* fix(mobile): image in android

* fix: patch react-native-track-player patch

* fix: build profile
2025-04-02 19:24:06 +08:00
Stephen Zhou 20f0abe302 feat(mobile): translation for home tabs (#3386)
* feat(mobile): translation content

* Starred

* inbox feeds lists

* profile

* discovery category

* search

* dayjs

* bring localizations back

* translation for mobile content

* todo note

* add settings resource

* settings

* Extract

* Extract

* Manually type

* extend

* remove feed_view_type

* remove discover.category

* update note

* type
2025-04-02 09:44:26 +08:00
Innei f3fee3676f fix(mobile): trigger timeline twice if scroll to change page view
- Added EventBus integration to handle timeline selection in `atoms.ts` and `PageList.tsx`.
- Updated `selectTimeline` function to dispatch events for better state management.
- Specified `react-native` as a peer dependency in `package.json` to ensure compatibility.
- Updated `pnpm-lock.yaml` to reflect the new version of `react-native`.

These changes enhance the responsiveness of the UI and improve the overall architecture of the event handling system.
2025-04-01 18:48:07 +08:00
Innei 93393f19fc feat(pager): enhance pager functionality with gesture support and UI updates
- Updated `Pager.tsx` to use `Pressable` for better interaction handling.
- Modified `EnhancePagerController.swift` to manage content views more effectively.
- Enhanced `EnhancePagerViewModule.swift` to support gesture recognition for smoother transitions.
- Refactored `usePagerView.ts` to utilize animated values for page transitions.

These changes improve user experience and interaction within the pager component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-01 18:05:47 +08:00
Stephen Zhou fa3cce2fa9 build: update lint config (#3234)
* build: update lint config

* update

* update

* update
2025-03-22 12:35:53 +08:00
Stephen Zhou ac8ac2bad3 fix(mobile): category item border radius, background color (#3216) 2025-03-21 16:01:10 +08:00
Whitewater b0de460896 feat(mobile): pass view parameter to fetch collection (#3202) 2025-03-20 18:30:21 +08:00
Innei f600ebbca9 fix(mobile): hide UserAvatar preview
- Replaced the noPreview prop with a new preview prop in the UserAvatar component, defaulting to true.
- Updated the rendering logic to conditionally display the avatar based on the preview prop.
- Adjusted instances of UserAvatar in EntryReadHistory and action.tsx to utilize the new preview prop.

These changes enhance the flexibility of the UserAvatar component by allowing for more controlled rendering behavior.

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-20 14:19:25 +08:00
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
DIYgod f2e29252f2 feat: rename (#3181)
* feat: rename

* fix

* fix

* fix
2025-03-19 21:43:55 +08:00
DIYgod 07d379ba28 feat(mobile): extract PageList component 2025-03-17 20:40:28 +08:00
DIYgod 9dc0e8375f fix(mobile): large header init value 2025-03-17 20:27:57 +08:00
DIYgod d6a5cfcdad feat(mobile): add haptics 2025-03-17 13:45:56 +08:00
Stephen Zhou 2c64d28bdd fix(mobile): no preview for avatar at header action (#3066)
* fix(mobile): no preview for avatar at header action

* update
2025-03-13 03:34:53 +00:00
Stephen Zhou ea53d1b9b5 fix(mobile): toast when toggling unread, fix entry context crash (#2997) 2025-03-07 12:16:49 +00:00
Stephen Zhou 7180e00d19 feat(mobile): list and inbox (#2969)
* feat(mobile): bring list and inbox back

* navigate to list

* inbox support

* fix: query entries

* use proxy image

* fix list and inbox state

* estimatedItemSize

* update

* update

* update

* fix list unread count

* unread count component

* update

* fix unread count by view
2025-03-05 21:36:26 +08:00
Stephen Zhou 13e02d7e9a feat(mobile): sign up, forget password, anonymous use (#2949)
* feat(mobile): sign up and forget password

* refactor(mobile): allow no login, move login as modal

* refactor(mobile): move 2fa as modal

* login icon

* update

* no login info

* color in dark mode

* style

* update

* update

* update

* update
2025-03-05 10:50:54 +08:00
Innei 8d8dafa37d refactor(mobile): Optimize header and form layouts
- Simplify NavigationHeader component by removing complex title centering logic
- Remove fixed width constraints in TimelineSelectorProvider header actions
- Add KeyboardAvoidingView to RSSHub form text inputs
- Conditionally render form sections based on available keys

Signed-off-by: Innei <tukon479@gmail.com>
2025-03-03 21:04:18 +08:00
DIYgod fd81327913 feat: unified env 2025-03-01 15:00:36 +08:00
Whitewater 34540a1651 refactor(mobile): improve scroll-to-top handling (#2910)
* refactor(mobile): enhance navigation scroll view handling and type safety

* fix(mobile): update contentScrollerRef in discover screen

* fix(mobile): integrate navigation listener for scroll view reference attachment

* fix: types
2025-02-28 17:09:13 +08:00
Innei b09a86d905 fix(mobile): simplify header back button interactions
- Remove redundant TouchableOpacity wrapping for DefaultHeaderBackButton
- Directly render DefaultHeaderBackButton in multiple components
- Improve header navigation component simplicity

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-28 12:08:17 +08:00
DIYgod 861ae35819 fix: NavigationHeaderBackButton 2025-02-28 08:56:57 +08:00
Innei cbe4149bf5 feat(mobile): improve navigation and UI components
- Add NavigationHeaderBackButton component
- Adjust SafeNavigationScrollView scroll and inset settings
- Update TimelineSelectorProvider header actions
- Change delete account text color to red
- Modify EntryTitle padding

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-27 14:28:42 +08:00
Innei e52e03f2da feat(mobile): improve header layout and animation
- Add smooth centering animation for navigation header title
- Implement blur effect in search and discover headers
- Standardize header action group width
- Remove unnecessary refresh control in search tabs
2025-02-26 21:19:39 +08:00
Innei 09ed50a4d7 refactor(mobile): reorganize navigation and layout components
This commit restructures the mobile app's navigation and layout components, moving them from scattered locations into a more organized structure. Key changes include:

- Created new layout and navigation-related directories
- Moved context, hooks, and view components to more logical locations
- Improved imports and component organization
- Added constants for UI-related values
- Simplified and standardized navigation and tab bar components

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-26 21:00:51 +08:00
DIYgod 3ab1c5a9d2 feat(mobile): bigger header buttons 2025-02-26 15:53:44 +08:00
DIYgod 6fafbcb2b8 feat: remove pictureViewFilterNoImage 2025-02-26 15:42:01 +08:00
Innei 265f23fd76 feat(mobile): add native scroll to top functionality for iOS
- Implement `scrollToTop` function in HelperModule for iOS
- Add native module method to scroll scroll views to top
- Update hooks and components to use new native scroll to top method
- Enhance cross-platform scroll behavior for mobile app
2025-02-25 22:33:35 +08:00
DIYgod a60d1444a7 feat: add ProxiedImage 2025-02-25 20:02:59 +08:00
Innei 5ba9431075 fix: improve header and scroll behavior in mobile components
- Refactor SafeNavigationScrollView to dynamically calculate header height
- Update TimelineSelectorList scroll and indicator insets
- Modify navigation scroll to top hook with view offset

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 19:42:37 +08:00
Innei de547f3bc9 fix: improve header height and scroll behavior for timeline and subscriptions
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 19:14:39 +08:00
Innei 7bf4a26659 feat(mobile): enhance timeline and subscriptions header actions
- Extract UnreadOnlyActionButton as a reusable component
- Add support for secondary button variant
- Update TimelineSelectorProvider to handle subscriptions screen
- Modify EntryListContext to include 'subscriptions' type
- Refactor header actions to support different screen types

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 18:28:06 +08:00
DIYgod 494efa472c feat: remove lists in timeline selector 2025-02-25 18:00:45 +08:00
Innei 924cd70475 chore(mobile): update UIBarButton overlay prop and enhance 2FA screen styling
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-25 15:10:20 +08:00
Stephen Zhou 8d76c35d69 feat(mobile): toggle unread only (#2873) 2025-02-25 11:33:27 +08:00
Innei 150fbf7bac refactor(mobile): remove deprecated profile screen and update navigation
- Remove ProfileScreen from settings routes
- Comment out profile-related navigation links
- Add profile route to modal layout
- Update HomeLeftAction to use expo-router for profile navigation

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 23:23:46 +08:00
Innei fce03fe977 feat(mobile): enhance dialog system with dynamic actions and improved header
- Refactor dialog library to support dynamic button actions
- Add support for custom header components and icons
- Improve AddFeedDialog layout and interaction
- Implement MarkAllAsReadDialog integration in home screen actions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 23:05:32 +08:00
Innei ea1c666bcd feat(mobile): enhance dialog system and UI interactions
- Add new dialog library for flexible modal interactions
- Implement AddFeedDialog with improved UX
- Update Tabbar and Pressable components with smoother animations
- Remove RootSiblingParent from main component
- Upgrade react-native-uikit-colors to v0.3.8
- Introduce ScaleFadeRotateIn animation for consistent UI transitions

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 22:27:14 +08:00
Innei 956d9dfd1e feat(mobile): add titles and improve navigation screen configurations
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 20:47:53 +08:00
Innei 1d62245f4b feat(mobile): add add feed button to discover header
Signed-off-by: Innei <tukon479@gmail.com>
2025-02-24 19:47:15 +08:00
Innei 3b5fb5febe fix(mobile): disable scroll-to-top for timeline view selector
- Disabled scroll-to-top behavior for horizontal ScrollView in TimelineViewSelector
- Prevents unintended scrolling when tapping the status bar

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-23 15:45:41 +08:00
Whitewater 9b3439f711 feat(mobile): implement scroll-to-top functionality (#2831)
* refactor(mobile): wrap entry list components to forward refs

* feat(mobile): implement scroll-to-top functionality

* fix: cast ref types in TimelineSelectorMasonryList

* chore: ensure proper cleanup in useScrollToTopRef hook
2025-02-21 03:45:07 +08:00
Innei 761e7d5333 refactor(mobile): enhance navigation scroll view and tab bar interactions
- Introduced new context for attaching navigation scroll view refs
- Improved tab bar behavior when re-selecting the same tab
- Removed deprecated scroll view context
- Updated imports and context management for tab bar components

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 23:13:23 +08:00
Innei ea374cb30c refactor(mobile): improve bottom tab bar and related components
- Refactored bottom tab bar implementation with new context and hooks
- Added new components for bottom tab bar management
- Updated imports and references to bottom tab bar related functionality
- Introduced new spring presets and relative date time improvements

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-20 22:31:39 +08:00
Innei 63e6a30d83 refactor(mobile): Update TimelineViewSelector context menu handling
- Modify TimelineViewSelector to pass view-specific context menu props
- Adjust TimelineViewSelectorContextMenu to handle undefined viewId more precisely
- Simplify context menu rendering logic for view-based timelines

Signed-off-by: Innei <tukon479@gmail.com>
2025-02-19 21:44:29 +08:00