Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Refactor(Button): update ViewComponent type and enhance documentation…#4026

Open
codewithshinde wants to merge 1 commit intoreact-native-elements:nextfrom
OpenSrcContributions:main
Open

Refactor(Button): update ViewComponent type and enhance documentation…#4026
codewithshinde wants to merge 1 commit intoreact-native-elements:nextfrom
OpenSrcContributions:main

Conversation

@codewithshinde
Copy link
Contributor

… examples. Include usage of expo-linear-gradient and Custom View Component in the Button

Motivation

Fixes # (issue)
Update the LinearGradient Docs usage, and also update the type of ViewComponent
from
typeof React.Component
to
React.ComponentType<any>

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Tested locally- No, build or test failures

  • Jest Unit Test
  • Checked with example app

Checklist

  • [ x] My code follows the style guidelines of this project
  • [ x] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation using yarn docs-build-api
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • [x ] New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Additional context

… examples. Include usage of expo-linear-gradient and Custom View Component in Button
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.40%. Comparing base (70290c6) to head (92154a1).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #4026   +/-   ##
=======================================
  Coverage   79.40%   79.40%           
=======================================
  Files          90       90           
  Lines        2141     2141           
  Branches      954      941   -13     
=======================================
  Hits         1700     1700           
  Misses        439      439           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@theianmay theianmay self-requested a review February 19, 2026 21:48
@theianmay theianmay self-assigned this Feb 19, 2026
@theianmay theianmay added the component: Button Issue related to Button Component label Feb 19, 2026
@github-project-automation github-project-automation bot moved this to In Progress 🚧 in Community Roadmap 🛣 Feb 19, 2026
@theianmay theianmay added this to the v5.0.1 milestone Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: Button Issue related to Button Component

Projects

Status: In Progress 🚧

Development

Successfully merging this pull request may close these issues.

2 participants