Commit Graph
278 Commits
Author SHA1 Message Date
Stephen Zhou 9d39711781 feat(mobile): private feed subscription icon 2025-04-28 16:36:42 +08:00
Whitewater 1fad306f67 fix: toast message handling on android (#3604)
* fix(toast): ensure default duration is applied when showing toast messages

* fix: handle potential undefined toastRefs and improve conflict warning

* chore: correct spelling of 'dismiss' in ToastRef and related usages
2025-04-27 15:17:50 +08:00
DIYgod a4ce91d6e3 feat(mobile): add status action 2025-04-24 10:38:39 +08:00
DIYgod 4027d0e6eb feat(mobile): optimize feed search result list 2025-04-23 19:26:33 +08:00
Whitewater 74ea30c30c fix(mobile): tweak loading style in android (#3557) 2025-04-23 06:34:17 +00:00
Innei 8678e5439e fix(mobile): simplify header component and update ForgetPasswordScreen layout
- Removed unused imports and the HeaderCloseButton component from HeaderElements.tsx.
- Integrated DefaultHeaderBackButton for improved navigation handling.
- Adjusted padding and alignment in ForgetPasswordScreen for better layout consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-23 13:50:13 +08:00
Stephen Zhou 1f5dd2a165 refactor(mobile): replace react-native-video with expo-video, hide control in list, close #3417 2025-04-23 13:21:48 +08:00
Stephen Zhou e0b2611e39 feat(mobile): video support (#3512) 2025-04-23 03:58:50 +00:00
DIYgod bf8e3b0398 feat(mobile): placeholderContentFit 2025-04-23 09:53:58 +08:00
Whitewater ae41eed457 fix: normalize safe area insets in android (#3554)
* fix: normalize safe area insets in android

* fix: import isAndroid utility
2025-04-22 17:37:28 +00:00
Whitewater 3343ddb658 fix: adjust layout for Android (#3548)
* fix: adjust tab bar height for Android to account for insets

* fix(mobile): onboarding screen layout adjustments

* fix(mobile): update header height calculation to use Constants for status bar height

* fix(mobile): remove unnecessary RootSiblingParent wrapper in Subscriptions component
2025-04-22 18:14:45 +08:00
Innei 798f73dfe7 fix(mobile): add ScreenErrorScreen component for error handling
- Introduced a new ScreenErrorScreen component to display user-friendly error messages.
- Integrated the ScreenErrorScreen into the WrappedScreenItem using an ErrorBoundary for improved error management.
- Enhanced navigation experience by allowing users to go back when an error occurs.

These changes improve the application's resilience and user experience during error scenarios.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 13:13:56 +08:00
Innei fcd21b2a53 fix(mobile): standardize separator styles across components
- Updated separator styles in various components to use a consistent class name for opacity.
- Removed dark mode specific classes to simplify styling.
- Adjusted padding and insets in the Recommendations component for better layout.

These changes enhance visual consistency and maintainability across the application.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 13:10:28 +08:00
Innei 8096bf5c1e feat(mobile): integrate expo-device for device type management
- Added expo-device package to manage device types.
- Implemented device type initialization in the app startup process.
- Created hooks and atoms for accessing device type throughout the app.
- Updated navigation logic to handle iPad-specific presentation styles.
- Removed unused loading indicator component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-22 00:16:44 +08:00
Whitewater 7e2be7ba2f fix(mobile): remove GestureDetector on ItemPressable (#3544) 2025-04-21 08:46:45 +00:00
Innei 4ee5944d69 fix(datetime): set default value for displayAbsoluteTimeAfterDay in RelativeDateTime component
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-18 19:04:55 +08:00
Innei 7801aef62b fix(mobile): improve loading indicator visibility in NavigationHeader and feeds context menu
- Added z-index to the loading indicator in NavigationHeader to ensure it appears above other elements.
- Integrated PlatformActivityIndicator in the SubscriptionFeedCategoryContextMenu to display a loading state when fetching entries.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 23:42:41 +08:00
Innei 8e9b92babc refactor(mobile): replace ItemPressable with NativePressable in multiple components
- Updated RelativeDateTime, EntryNormalItem, and CategoryGrouped components to use NativePressable for improved touch handling.
- Introduced NativePressable and IosItemPressable components to streamline pressable functionality across iOS and native views.
- Enhanced code organization by separating NativePressable types and implementations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 23:35:10 +08:00
Innei f4999279a1 refactor(mobile): remove horizontal scrolling checks from various components
- Updated multiple components to eliminate unnecessary horizontal scrolling checks before executing actions.
- Enhanced the ErrorBoundary component to apply a text style to error messages.
- Improved code readability and maintainability by streamlining the logic in EntryNormalItem, EntrySocialItem, and other related components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 23:22:01 +08:00
Stephen Zhou cf6d7567bc feat: server side readability (#3498) 2025-04-17 10:41:15 +08:00
Innei 8602973016 feat(mobile): enhance EnhancePagerView with initialPageIndex prop
- Refactored EnhancePagerView to include an initialPageIndex property for better control over the starting page.
- Updated related components and specifications to support the new prop.
- Fixed a typo in the initialize method name for consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 00:48:01 +08:00
Innei 70ef539788 feat(mobile): refactor ItemPressable usage and styles
- Replaced TouchableOpacity with ItemPressable in multiple components for improved interaction handling.
- Introduced a new UnStyled option in ItemPressableStyle to allow for customizable styling.
- Updated ItemPressable implementation in RelativeDateTime, EntryNormalItem, and CategoryGrouped components to enhance touch feedback and visual consistency.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-17 00:39:00 +08:00
DIYgod ece26375a6 feat(mobile): actions icons 2025-04-16 22:47:24 +08:00
Innei 6c9448ccd1 chore(mobile):rename screen filename
- Updated import paths for existing screens to use camel case naming conventions.
- Introduced new screens: EditEmailScreen, FollowScreen, ForgetPasswordScreen, InvitationScreen, ListScreen, LoginScreen, ProfileScreen, RsshubFormScreen, SignUpScreen, TwoFactorAuthScreen, and SelectReadingModeScreen.
- Enhanced the onboarding experience with the addition of EditProfileScreen.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-16 22:02:00 +08:00
Innei dbf6954da0 feat(mobile): trending screen
- Updated imports for EntryDetailScreen and FeedScreen to reflect new file structure.
- Introduced OnboardingScreen and PlayerScreen components to improve user onboarding and media playback experience.
- Added PhUsersBold icon component for enhanced UI consistency.
- Adjusted animation timing in ItemPressableModule for better touch feedback.
- Updated sitemap to reflect new screen paths.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-16 21:58:21 +08:00
Innei cce400cca0 feat(discover): enhance Discover screen with category grid and navigation
- Introduced a new `RecommendationCategoryScreen` for displaying recommendations by category.
- Added a category grid in the Discover screen, allowing users to navigate to specific categories.
- Integrated emoji representation for categories using `CategoryEmojiMap`.
- Updated context management to streamline header height and animated values.
- Refactored `Recommendations` component to support new navigation structure.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 22:30:40 +08:00
Innei 05a22d3f30 refactor(ios): replace native PagerView
- Added `cssInterop` for styling in `PagerView`.
- Updated `onScrollEnd` to pass the current index in `PagerView`.
- Introduced `PagerList` component for better feed view management.
- Refactored imports to ensure consistency across modules.
- Enhanced type definitions for better TypeScript support.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 19:49:22 +08:00
Innei 57dad99913 refactor(ios): use ItemPressable native view to handle gesture
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-15 19:23:16 +08:00
Innei ee5c66305a feat(tabbar): enhance BottomTabProvider with initialTabIndex and context integration
- Added initialTabIndex prop to BottomTabProvider for customizable tab index.
- Integrated BottomTabContext to manage tab state and improve context handling.
- Introduced useResetTabOpacityWhenFocused hook to reset tab opacity based on focus state.
- Updated TabRoot components to utilize context for tab index management.
- Adjusted PagerListVisibleContext default value for better visibility handling.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:50:07 +08:00
Innei 22964c71c0 refactor(tabbar): simplify tab item rendering and improve performance with memoization
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 23:07:19 +08:00
Innei 31a8701d2c feat(mobile): add checkScrollToBottom functionality to SafeNavigationScrollView and integrate with TimelineSelectorList
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-14 19:45:58 +08:00
DIYgod ea680f6e9b fix(mobile): relative date time not updated 2025-04-12 15:51:00 +08:00
DIYgod 7b2063316c fix(mobile): expo-image crashes with certain svg 2025-04-12 11:58:30 +08:00
DIYgod ed7a6acb39 feat(mobile): add ErrorBoundary to ExpoImage 2025-04-12 10:53:57 +08:00
Innei 3669223c13 feat(entry-list): enhance entry components with view type support
- Updated EntryNormalItem, EntrySocialItem, EntryVideoItem, and EntryGridFooter to accept and utilize view type for better context handling.
- Refactored EntryListSelector to include a NoLoginGuard for improved user experience.
- Added display names for memoized components for better debugging.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 21:08:34 +08:00
Whitewater b295711f5e feat(mobile): implement webview in android (#3442)
* feat(mobile): implement webview in android

* fix(mobile): update Android resource paths to use 'assets' directory

* fix(mobile): add injected JavaScript for WebView height management

* feat(mobile): enhance WebView navigation handling
2025-04-11 20:18:03 +08:00
Innei ac39545c39 perf: optimize re-render when switch view
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 17:27:26 +08:00
Innei 23eaf86926 feat: implement tap gesture for ItemPressable component; refactor context menu entry and entry list components for improved performance and readability
Signed-off-by: Innei <tukon479@gmail.com>
2025-04-11 14:19:57 +08:00
Stephen Zhou e7728a3d34 refactor: unify unread count locales and logic (#3453) 2025-04-10 16:22:46 +08:00
DIYgod a65742e2bf feat(mobile): success toast 2025-04-09 17:53:20 +08:00
DIYgod 22d642a3fb feat(mobile): update mark as read icon 2025-04-09 17:02:19 +08:00
lawvs 2c89ea530e fix(mobile): replace NativeView with NativeWebView in EntryContentWebView 2025-04-09 11:16:53 +08:00
Innei 283673b14b fix(mobile): enhance SafeNavigationScrollView with tab screen detection
- Introduced useInTabScreen hook to determine if the current screen is within a tab.
- Updated SafeNavigationScrollView to conditionally check for scroll to bottom only when in a tab screen.
- Removed unused useViewDidAppear hook from navigation hooks for cleaner code.

These changes improve the functionality of the SafeNavigationScrollView and streamline the navigation hooks.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 21:32:43 +08:00
Innei 63b39a08c9 fix(mobile): optimize child handling in GroupedList component
- Updated memoization of child elements in GroupedInsetListCard to depend on the children prop, improving rendering efficiency.

This change enhances performance by ensuring that the component only re-renders when the children change.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 20:40:48 +08:00
lawvs 1eaf90055d fix(mobile): crash when enter entry in android 2025-04-08 20:31:05 +08:00
Innei 13b1375c50 feat(ui): improve GroupedList and Invitations components with enhanced child handling and color usage
- Added memoization for child elements in GroupedList to optimize rendering.
- Updated Invitations component to utilize dynamic color for UserAvatar based on theme.
- Refactored color imports for better consistency across components.

These changes enhance performance and visual consistency in the UI components.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-08 20:27:45 +08:00
Innei bb7fa92d45 refactor(mobile): enhance header components and layout
- Introduced `NavigationBlurEffectHeaderView` for improved header rendering in various settings screens.
- Updated `SafeNavigationScrollView` to accept a `Header` prop for better layout flexibility.
- Refactored existing screens to utilize the new header component, enhancing consistency across the app.
- Adjusted styles for header text to improve visual hierarchy.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 21:23:12 +08:00
Innei 4fc8ec3f42 feat: scrollview scroll to end detection
- Refactored HelperModule to include new async functions for scrolling and image handling.
- Removed ProfileViewModule and associated UI components to streamline the codebase.
- Updated expo-module.config.json to reflect the removal of ProfileViewModule.
- Improved SafeNavigationScrollView and TimelineSelectorList to utilize new scroll handling features.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-07 19:31:56 +08:00
DIYgod f51e71bce9 fix: types 2025-04-05 21:59:32 +08:00
Innei c14d241b60 feat(mobile): implement error handling components and integrate crashlytics
- Added GlobalErrorScreen and ListErrorView for improved error display.
- Enhanced ErrorBoundary to support custom fallback rendering.
- Integrated crashlytics initialization in the app startup process.
- Updated various components to utilize the new error handling structure.
- Fixed import paths for OTPWindow component.

Signed-off-by: Innei <tukon479@gmail.com>
2025-04-05 21:24:12 +08:00