Skip to content

Conversation

@deepktp
Copy link
Contributor

@deepktp deepktp commented Jul 18, 2025

Fix Broken actions (dffe6b4)

Pending Tasks

  • Docs build action has issue of yarn.lock package hash mismatch
  • Codcov was removed due to some error in library.

Upgrade react native and expo versions (41742ba)

  • Search bar animations are broken Layout Animations (React native issue on new arch)

Scripts to update docs for new version and upgrade version (For admin) (529a7bc)

Scripts are fixed to work on windows system, added script to upgrade and copy docs files in website dir.
There scripts are written according to upgraded version of docusaurus. New version of docusaurus was having issue with docs of older rneui docs which i have removed on my fork.

deepktp and others added 18 commits July 18, 2025 12:01
Types with string literals and `string` are collapsed to `string` by TypeScript.
By changing the `string` to `stiring & {}` we can avoid this.
…x, ListItem, Slider, Tab, and TabView components
 #9 (#51)

* fix(Tab): center selected tab and fix scroll positioning (react-native-elements#3740)

* fix(Tab): add LayoutChangeEvent import for improved layout handling

* fix(Tab): Code style issues. Fixed with Prettier.

* fix(Tab): clean up code formatting for consistency
@deepktp
Copy link
Contributor Author

deepktp commented Jul 18, 2025

Following issues area fixed

#3976
#3973 (Currently using @rn-vui/ratings please overwrite it with #3983)
#3968
#3965
#3966
#3963
#3956
#3919
#3918
#3915
#3912
#3907
#3905
#3887 (Expo is now 52)
#3820
#3808

Maybe more but this i what i can confirm

@arpitBhalla arpitBhalla requested a review from Copilot July 19, 2025 04:39

This comment was marked as outdated.

@arpitBhalla arpitBhalla requested a review from Copilot July 23, 2025 06:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request merges changes from the "vikalp elements" branch that includes fixing broken GitHub Actions, upgrading React Native and Expo versions, and adding scripts for documentation management and version upgrades for admins. The changes primarily focus on modernizing the build tools, fixing cross-platform compatibility issues, updating dependencies, and improving the development workflow with better scripts and updated configurations.

Key Changes:

  • Build system modernization: Upgraded React Native, Expo, TypeScript, and Jest to newer versions with updated configurations
  • Cross-platform compatibility fixes: Replaced Node.js path module with posix equivalent for consistent path handling across platforms
  • Development workflow improvements: Added scripts for documentation management, version upgrades, and better error handling in release processes

Reviewed Changes

Copilot reviewed 160 out of 196 changed files in this pull request and generated 8 comments.

Show a summary per file

:

File Description
scripts/release/index.ts Enhanced release script with better error handling, documentation management, and website update automation
scripts/docgen/src/ Updated documentation generation with posix path handling and improved template rendering
packages/base/src/ Updated components with modern React Native patterns, fixed prop handling, and improved TypeScript types
packages/themed/ Updated Jest configuration, test imports, and package.json with new dependency versions
package configuration files Updated Babel presets, Jest setup, and dependency versions across multiple packages

});
}

static async updateWebsiteDocs(oldVersion: string, newVersion: string): Promise<void> {
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method is quite large (52 lines) and handles multiple responsibilities. Consider breaking it down into smaller, focused methods like handleVersionChange, updateVersionedDocs, and updateVersionsJson for better maintainability.

Copilot uses AI. Check for mistakes.
Comment on lines +120 to +125
//@ts-ignore
toValue: toValue,
useNativeDriver: true,
easing: Easing.inOut(Easing.ease),
duration: 150,
...animationConfig,
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @ts-ignore without explanation suppresses TypeScript safety. Add a comment explaining why this is necessary or properly type the animation configuration.

Suggested change
//@ts-ignore
toValue: toValue,
useNativeDriver: true,
easing: Easing.inOut(Easing.ease),
duration: 150,
...animationConfig,
toValue: toValue,
useNativeDriver: true,
easing: Easing.inOut(Easing.ease),
duration: 150,
...(animationType === 'timing'
? (animationConfig as Animated.TimingAnimationConfig)
: (animationConfig as Animated.SpringAnimationConfig)),

Copilot uses AI. Check for mistakes.
Comment on lines +16 to +41
export type SearchBarRef = {
focus: () => void;
blur: () => void;
clear: () => void;
cancel: () => void;
};

return (
<Component
ref={(ref: SearchBarIOS) => {
this.searchBar = ref;
}}
{...this.props}
/>
);
}
}
export const SearchBar = forwardRef<
SearchBarRef,
SearchBarProps & { theme?: Theme }
>((props, ref) => {
const { platform = 'default' } = props;
const searchBarRef = useRef<SearchBarRef>(null);

useImperativeHandle(ref, () => ({
focus: () => searchBarRef.current?.focus(),
blur: () => searchBarRef.current?.blur(),
clear: () => searchBarRef.current?.clear(),
cancel: () => searchBarRef.current?.cancel(),
}));

const Component: React.ElementType =
SEARCH_BAR_COMPONENTS[platform] || SearchBarDefault;

return <Component ref={searchBarRef} {...props} />;
});
Copy link

Copilot AI Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The component was converted from class to functional component but the ref interface only provides imperative methods. Consider if this aligns with React's recommended patterns for component design.

Copilot uses AI. Check for mistakes.
@theianmay
Copy link
Member

Hi @deepktp, thank you for the work that went into this PR! I am excited to work with you to get this library back into a working state. I collaborated with @Monte9 on the review and noticed that when I ran this locally on the example app (Android emulator, Expo 52), I ran into an error with the Linear Progress component. I have attached a screenshot but the error is "Loss of precision during arithmetic conversion: (long) 0.3"

I know you have made a lot more progress since this PR was initially proposed, so we can coordinate on a fix to this or perhaps pulling in further updates. Thanks!

Screenshot_1760725887

@theianmay theianmay merged commit 7d5aa3e into react-native-elements:next Oct 21, 2025
5 checks passed
github-actions bot pushed a commit to SimenB/react-native-elements that referenced this pull request Oct 21, 2025
github-actions bot pushed a commit to SimenB/react-native-elements that referenced this pull request Oct 21, 2025
@theianmay theianmay mentioned this pull request Oct 22, 2025
1 task
@github-project-automation github-project-automation bot moved this to Closed or Merged 🏁 in Community Roadmap 🛣 Nov 16, 2025
@theianmay theianmay added this to the v5.0.0 milestone Nov 16, 2025
@theianmay theianmay self-requested a review December 5, 2025 06:46
Copy link
Member

@theianmay theianmay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed or Merged 🏁

Development

Successfully merging this pull request may close these issues.

5 participants